3 # dhcp6c dhcp6c is an implementation of DHCPv6 server.
4 # This shell script takes care of starting and stopping
8 # description: dhcp6c supports server side of Dynamic Host Configuration
11 # config: /etc/dhcp6c.conf
12 # config: /etc/sysconfig/dhcp6c
13 # Source function library
14 . /etc/rc.d/init.d/functions
17 . /etc/sysconfig/network
20 [ -f /etc/sysconfig/dhcp6c ] && . /etc/sysconfig/dhcp6c
22 # Check that networking is up.
23 if is_yes "${NETWORKING}"; then
24 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
25 msg_network_down DHCP6C
36 # Check if the service is already running?
37 if [ ! -f /var/lock/subsys/dhcp6c ]; then
39 daemon dhcp6c $DHCP6CIF
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcp6c
43 msg_already_running DHCP6C
47 if [ -f /var/lock/subsys/dhcp6c ]; then
48 msg_stopping "DHCP6C Server"
50 rm -f /var/run/dhcp6c.pid /var/lock/subsys/dhcp6c >/dev/null 2>&1
52 msg_not_running DHCP6C
65 msg_usage "$0 {start|stop|restart|force-reload|status}"