2 # Start/stop the nwho daemon.
6 # Required-Start: $network $local_fs
7 # Required-Stop: $network $local_fs
8 # Default-Start: S 2 3 4 5
10 # Short-Description: The network who daemon
11 # Description: This is Yet Another RWho Replacement utility. It collects information
12 # about all logged in users on a central server where it can be displayed.
15 test -f /usr/sbin/nwhod || exit 0
17 if [ -f /etc/default/nwho ] ; then
22 start) echo -n "Starting network who daemon: nwhod"
23 start-stop-daemon --start --quiet --exec /usr/sbin/nwhod $NWHOSERVER
26 stop) echo -n "Stopping network who daemon: nwhod"
27 start-stop-daemon --stop --quiet --exec /usr/sbin/nwhod
28 [ -z "$NWHOSERVER" ] && rm -f /var/state/nwho/*
31 restart|reload|force-reload) echo -n "Restarting network who daemon: nwhod"
32 start-stop-daemon --stop --quiet --exec /usr/sbin/nwhod
33 start-stop-daemon --start --quiet --exec /usr/sbin/nwhod $NWHOSERVER
36 *) echo "Usage: /etc/init.d/nwho start|stop|restart|reload|force-reload"