SysV init scripts cleanup #2
This commit is contained in:
parent
70dfbe2845
commit
940ac992ff
@ -70,8 +70,6 @@ case "$1" in
|
||||
stop
|
||||
start
|
||||
;;
|
||||
reload)
|
||||
;;
|
||||
condrestart|try-restart)
|
||||
if [ -f /var/lock/subsys/$prog ]; then
|
||||
stop
|
||||
@ -79,7 +77,7 @@ case "$1" in
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $prog {start|stop|restart|condrestart|try-restart|reload|force-reload|status|usage}"
|
||||
echo "Usage: $prog {start|stop|status|restart|force-reload|condrestart|try-restart}"
|
||||
[ "$1" = "usage" ] && exit 0
|
||||
exit 2
|
||||
;;
|
||||
|
@ -70,8 +70,6 @@ case "$1" in
|
||||
stop
|
||||
start
|
||||
;;
|
||||
reload)
|
||||
;;
|
||||
condrestart|try-restart)
|
||||
if [ -f /var/lock/subsys/$prog ]; then
|
||||
stop
|
||||
@ -79,7 +77,7 @@ case "$1" in
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $prog {start|stop|restart|condrestart|try-restart|reload|force-reload|status|usage}"
|
||||
echo "Usage: $prog {start|stop|status|restart|force-reload|condrestart|try-restart}"
|
||||
[ "$1" = "usage" ] && exit 0
|
||||
exit 2
|
||||
;;
|
||||
|
@ -69,8 +69,6 @@ case "$1" in
|
||||
stop
|
||||
start
|
||||
;;
|
||||
reload)
|
||||
;;
|
||||
condrestart|try-restart)
|
||||
if [ -f /var/lock/subsys/$prog ]; then
|
||||
stop
|
||||
@ -78,7 +76,7 @@ case "$1" in
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $prog {start|stop|restart|condrestart|try-restart|reload|force-reload|status|usage}"
|
||||
echo "Usage: $prog {start|stop|status|restart|force-reload|condrestart|try-restart}"
|
||||
[ "$1" = "usage" ] && exit 0
|
||||
exit 2
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user