Changed files:
dhcp6c.init -> 1.6
dhcp6s.init -> 1.7
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/dhcp6c ]; then
+ stop
+ start
+ else
+ msg_not_running "DHCPv6 client daemon"
+ RETVAL=$1
+ fi
+}
+
RETVAL=0
case "$1" in
start)
stop)
stop
;;
- restart|reload)
+ restart)
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
status)
status dhcp6c
exit $?
;;
*)
- msg_usage "$0 {start|stop|restart|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
exit 3
esac
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/dhcp6s ]; then
+ stop
+ start
+ else
+ msg_not_running "DHCPv6 server daemon"
+ RETVAL=$1
+ fi
+}
+
RETVAL=0
case "$1" in
start)
stop)
stop
;;
- restart|reload)
+ restart)
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
status)
status dhcp6s
exit $?
;;
*)
- msg_usage "$0 {start|stop|restart|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
exit 3
esac