+start() {
+ # Check if the service is already running?
+ if [ ! -f /var/lock/subsys/dhcp6c ]; then
+ msg_starting "DHCPv6 client daemon"
+ daemon dhcp6c $DHCP6CIF
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcp6c
+ else
+ msg_already_running "DHCPv6 client daemon"
+ fi
+}
+
+stop() {
+ if [ -f /var/lock/subsys/dhcp6c ]; then
+ msg_stopping "DHCPv6 client daemon"
+ killproc dhcp6c
+ rm -f /var/run/dhcp6c.pid /var/lock/subsys/dhcp6c >/dev/null 2>&1
+ else
+ msg_not_running "DHCPv6 client daemon"
+ fi
+}
+
+condrestart() {
+ if [ -f /var/lock/subsys/dhcp6c ]; then
+ stop
+ start
+ else
+ msg_not_running "DHCPv6 client daemon"
+ RETVAL=$1
+ fi
+}