3 # whosond Start/Stop whosond server
6 # description: whosond - implementation of WHOSON protocol
9 # config: /etc/whoson.conf
11 # Source function library
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
18 [ -f /etc/sysconfig/whoson ] && . /etc/sysconfig/whoson
20 # Check that networking is up.
21 if is_yes "${NETWORKING}"; then
22 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
23 msg_network_down whosond
31 # See how we were called.
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/whosond ]; then
36 msg_starting "whosond"
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/whosond
41 msg_already_running whosond
45 if [ -f /var/lock/subsys/whosond ]; then
49 rm -f /var/lock/subsys/whosond >/dev/null 2>&1
51 msg_not_running whosond
60 if [ -f /var/lock/subsys/whosond ]; then
65 msg_not_running whosond >&2
74 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"