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
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 . /etc/sysconfig/network
21 [ -f /etc/sysconfig/dhcp6c ] && . /etc/sysconfig/dhcp6c
23 # Check that networking is up.
24 if is_yes "${NETWORKING}"; then
25 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
26 msg_network_down "DHCPv6 client daemon"
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/dhcp6c ]; then
36 msg_starting "DHCPv6 client daemon"
37 daemon dhcp6c $DHCP6CIF
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcp6c
41 msg_already_running "DHCPv6 client daemon"
46 if [ -f /var/lock/subsys/dhcp6c ]; then
47 msg_stopping "DHCPv6 client daemon"
49 rm -f /var/run/dhcp6c.pid /var/lock/subsys/dhcp6c >/dev/null 2>&1
51 msg_not_running "DHCPv6 client daemon"
56 if [ -f /var/lock/subsys/dhcp6c ]; then
60 msg_not_running "DHCPv6 client daemon"
88 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"