4 # Required-Start: $remote_fs $syslog ntp
5 # Required-Stop: $remote_fs $syslog
6 # Default-Start: 2 3 4 5
8 # Short-Description: Starts arexxd
9 # Description: Starts the Arexx data logger receiver daemon
12 PATH=/sbin:/bin:/usr/sbin:/usr/bin
13 DAEMON=/usr/local/sbin/arexxd
15 DESC="Arexx data logger daemon"
16 OPTIONS="--log-packets"
18 . /lib/lsb/init-functions
20 test -f $DAEMON || exit 0
26 echo -n "Starting $DESC: "
27 start-stop-daemon --quiet --start --chuid arexxd:arexxd --exec $DAEMON -- $OPTIONS
31 echo -n "Stopping $DESC: "
32 start-stop-daemon --quiet --oknodo --stop --user arexxd --exec $DAEMON
36 echo -n "Restarting $DESC: "
37 start-stop-daemon --quiet --oknodo --stop --user arexxd --exec $DAEMON
39 start-stop-daemon --quiet --start --chuid arexxd:arexxd --exec $DAEMON -- $OPTIONS > /dev/null 2>&1
43 status_of_proc $DAEMON $NAME
47 echo "Usage: $N {start|stop|restart|force-reload|status}" >&2