5 # pidfile: /var/run/dibbler.pid
6 # config: /var/lib/dibbler/server.conf
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
15 # Check that networking is up.
16 if is_yes "${NETWORKING}"; then
17 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
18 # nls "ERROR: Networking is down. %s can't be run." <service>
19 msg_network_down dibbler
27 # See how we were called.
30 # Check if the service is already running?
31 if [ ! -f /var/lock/subsys/dibbler ]; then
33 daemon /usr/sbin/dibbler-server start
36 touch /var/lock/subsys/dibbler
38 msg_already_running dibbler
43 if [ -f /var/lock/subsys/dibbler ]; then
45 killproc dibbler-server
47 if [ $RET -eq 0 ]; then
48 rm -f /var/lock/subsys/dibbler /var/run/dibbler.pid >/dev/null 2>&1
51 msg_not_running dibbler
62 msg_usage "$0 {start|stop|restart|reload}"