#! /bin/sh # # chkconfig: 345 60 20 # description: The rwho protocol lets remote users get a list of all of \ # the users logged into a machine running the rwho daemon \ # (similiar to finger). # processname: rwhod # Get config. . /etc/sysconfig/network # Get functions . /etc/rc.d/init.d/functions # Check that networking is up. if [ ${NETWORKING} = "no" ] ; then exit 0 fi # See how we were called. case "$1" in start) echo -n "Starting rwho services: " daemon rwhod echo touch /var/lock/subsys/rwhod ;; stop) echo -n "Stopping rwho services: " killproc rwhod echo rm -f /var/lock/subsys/rwhod ;; status) status rwhod ;; restart) $0 stop $0 start ;; reload) echo "There is no way to reload rwhod as their isn't any config file." ;; *) echo "Usage: $0 {start|stop|status|restart}" exit 1 ;; esac exit 0