4 # Provides:          kivitendo-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 Kivitendo task server
 
  15 # Change this to point to the Kivitendo "task_server.pl" location.
 
  16 DAEMON="/opt/kivitendo/scripts/task_server.pl"
 
  17 TOPIC="Kivitendo 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/kivitendo-task-server {start|stop|reload|status}"