tuned.initscript: "usage" follows common usage policy, fixed indentation
This commit is contained in:
parent
b1f1e60c4d
commit
47829cd592
1 changed files with 24 additions and 25 deletions
|
|
@ -80,11 +80,6 @@ usage() {
|
|||
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
|
||||
}
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
usage
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
rh_status_q && exit 0
|
||||
|
|
@ -111,6 +106,10 @@ case "$1" in
|
|||
rh_status_q || exit 0
|
||||
restart
|
||||
;;
|
||||
usage)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
exit 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue