Changed files:
conmand.init -> 1.2
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/conmand ]; then
msg_starting conmand
else
msg_already_running conmand
fi
- ;;
- stop)
+}
+
+stop() {
if [ -f /var/lock/subsys/conmand ]; then
msg_stopping conmand
killproc conmand
- rm -f /var/lock/subsys/conmand >/dev/null 2>&1
+ rm -f /var/lock/subsys/conmand >/dev/null
else
msg_not_running conmand
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 conmand