4 # Provides: lx-office-task-server
5 # Required-Start: $local_fs $remote_fs $network $syslog $named
6 # Required-Stop: $local_fs $remote_fs $network $syslog $named
7 # Default-Start: 2 3 4 5
10 # Short-Description: Start/stop the Lx-Office task server
15 # Change this to point to the Lx-Office "task_server.pl" location.
16 DAEMON="/opt/lx-office/scripts/task_server.pl"
17 TOPIC="Lx-Office task server"
19 if [ ! -x $DAEMON ] ; then
20 echo "$TOPIC executable not found"
26 echo "Starting the $TOPIC"
30 echo "Stopping the $TOPIC"
34 echo "Restarting the $TOPIC"
38 if $DAEMON status > /dev/null 2> /dev/null; then
39 echo "The $TOPIC is running"
41 echo "The $TOPIC is not running"
46 echo "Usage: /etc/init.d/lx-office-task-server {start|stop|reload|status}"