3 # dhcp6s dhcp6s is an implementation of DHCPv6 server.
4 # This shell script takes care of starting and stopping
8 # description: dhcp6s supports server side of Dynamic Host Configuration
11 # config: /etc/dhcp6s.conf
12 # config: /etc/server6_addr.conf
13 # config: /etc/sysconfig/dhcp6s
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 . /etc/sysconfig/network
22 [ -f /etc/sysconfig/dhcp6s ] && . /etc/sysconfig/dhcp6s
24 # Check that networking is up.
25 if is_yes "${NETWORKING}"; then
26 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
27 msg_network_down "DHCPv6 server daemon"
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/dhcp6s ]; then
37 msg_starting "DHCPv6 server daemon"
38 daemon dhcp6s $DHCP6SIF
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcp6s
42 msg_already_running "DHCPv6 server daemon"
47 if [ -f /var/lock/subsys/dhcp6s ]; then
48 msg_stopping "DHCPv6 server daemon"
50 rm -f /var/run/dhcp6s.pid /var/lock/subsys/dhcp6s >/dev/null 2>&1
52 msg_not_running "DHCPv6 server daemon"
57 if [ -f /var/lock/subsys/dhcp6s ]; then
61 msg_not_running "DHCPv6 server daemon"
89 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"