13 # Source function library
14 . /etc/rc.d/init.d/functions
17 . /etc/sysconfig/network
20 [ -f /etc/sysconfig/distccd ] && . /etc/sysconfig/distccd
22 # Check that networking is up.
23 if is_no "${NETWORKING}"; then
24 msg_network_down distccd
31 # See how we were called.
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/distccd ]; then
37 daemon /usr/bin/distccd
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/distccd
41 msg_already_running distccd
45 if [ -f /var/lock/subsys/distccd ]; then
48 rm -f /var/run/distccd.pid /var/lock/subsys/distccd >/dev/null 2>&1
50 msg_not_running distccd
67 msg_usage "$0 {start|stop|status|restart|reload}"
73 # This must be last line !
74 # vi:syntax=sh:tw=78:ts=8:sw=4