done
}
-case "$1" in
- start|reload)
+start() {
if [ ! -f /var/lock/subsys/vrootdevices ]; then
msg_starting vrootdevices
ok
else
msg_already_running vrootdevices
fi
+}
- ;;
- stop)
+stop() {
if [ -f /var/lock/subsys/vrootdevices ]; then
msg_stopping vrootdevices
ok
else
msg_not_running vrootdevices
fi
+}
+
+case "$1" in
+ start|reload)
+ start
+ ;;
+ stop)
+ stop
;;
status)
- ID=`id -u`
- if [ $ID -eq 0 ]; then
- echo "There is no way to tell"
- else
- # don't remove the space at the end!!!
- nls "You need to be root to use this command ! "
- fi
+ echo "There is no way to tell"
;;
restart|force-reload)
- $0 stop
- $0 start
+ stop
+ start
;;
*)
- echo "Usage: $0 {start|stop|restart|reload|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
exit 3
;;
esac
exit $RETVAL
-
-# This must be last line !
-# vi:syntax=sh