Changed files:
cancd.init -> 1.4
exit 0
fi
-# See how we were called.
-case "$1" in
- start)
+start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/cancd ]; then
msg_starting cancd
else
msg_already_running cancd
fi
- ;;
- stop)
+}
+
+stop() {
if [ -f /var/lock/subsys/cancd ]; then
# Stop daemons.
msg_stopping cancd
else
msg_not_running cancd
fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
restart|force-reload)
- $0 stop
- $0 start
- exit $?
+ stop
+ start
;;
status)
status cancd
esac
exit $RETVAL
-
-# This must be last line !
-# vi:syntax=sh