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 Protocol for IPv6.
10 # config: /etc/dhcp6c.conf
11 # config: /etc/sysconfig/dhcp6c
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 . /etc/sysconfig/network
22 [ -f /etc/sysconfig/dhcp6c ] && . /etc/sysconfig/dhcp6c
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 client daemon"
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/dhcp6c ]; then
37 msg_starting "DHCPv6 client daemon"
38 daemon dhcp6c $DHCP6CIF
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcp6c
42 msg_already_running "DHCPv6 client daemon"
47 if [ -f /var/lock/subsys/dhcp6c ]; then
48 msg_stopping "DHCPv6 client daemon"
50 rm -f /var/run/dhcp6c.pid /var/lock/subsys/dhcp6c >/dev/null 2>&1
52 msg_not_running "DHCPv6 client daemon"
57 if [ -f /var/lock/subsys/dhcp6c ]; then
61 msg_not_running "DHCPv6 client daemon"
89 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"