Changed files:
ddclient.init -> 1.7
exit 0
fi
-RETVAL=0
-# See how we were called.
-case "$1" in
- start)
+start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/ddclient ]; then
msg_starting "Dynamic DNS Client"
else
msg_already_running "Dynamic DNS Client"
fi
- ;;
- stop)
+}
+
+stop() {
if [ -f /var/lock/subsys/ddclient ]; then
msg_stopping "Dynamic DNS Client"
killproc ddclient
else
msg_not_running "Dynamic DNS Client"
fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
restart)
- $0 stop
- $0 start
- exit $?
+ stop
+ start
;;
status)
status ddclient