3 # dibbler DHCPv6 Server
7 # description: dibbler is a portable DHCPv6 implementation. It supports stateful \
8 # (i.e. IPv6 address granting) as well as stateless (i.e. option \
9 # granting) autoconfiguration for IPv6.
10 # pidfile: /var/run/dibbler.pid
11 # config: /var/lib/dibbler/server.conf
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 . /etc/sysconfig/network
20 #[ -f /etc/sysconfig/dibbler ] && . /etc/sysconfig/dibbler
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
24 msg_network_down dibbler
32 # See how we were called.
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/dibbler ]; then
38 daemon /usr/sbin/dibbler-server start
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dibbler
42 msg_already_running dibbler
47 if [ -f /var/lock/subsys/dibbler ]; then
49 killproc dibbler-server
51 if [ $RET -eq 0 ]; then
52 rm -f /var/lock/subsys/dibbler /var/run/dibbler.pid >/dev/null 2>&1
55 msg_not_running dibbler
61 reload|restart|force-restart)
66 msg_usage "$0 {start|stop|restart|reload}"