Use tabs for indentation

Except for the switch case, the script was written with tab indentation.
With tabstop of 4 spaces, the indentation in the switch case would make
sense, but I assume this is just a glitch of the editor.
This commit is contained in:
Benedikt Heine 2020-12-27 16:30:12 +01:00
parent d4251ea5ca
commit ebb2ec7e92
1 changed files with 30 additions and 30 deletions

View File

@ -163,37 +163,37 @@ status() {
### main logic ###
case "$1" in
start)
checkconfig start fail
start
;;
stop)
stop
start)
checkconfig start fail
start
;;
status)
status
;;
restart)
checkconfig restart fail
stop nofail
start
;;
condrestart)
STATUS=$(status > /dev/null 2>&1)
if [ $? != 0 ]; then exit 0; fi
checkconfig restart fail
stop nofail
start
;;
reload)
reload
;;
checkconfig)
checkconfig
;;
*)
echo "Usage: $0 {start|stop|restart|reload|checkconfig|status}"
exit 3
stop)
stop
;;
status)
status
;;
restart)
checkconfig restart fail
stop nofail
start
;;
condrestart)
STATUS=$(status > /dev/null 2>&1)
if [ $? != 0 ]; then exit 0; fi
checkconfig restart fail
stop nofail
start
;;
reload)
reload
;;
checkconfig)
checkconfig
;;
*)
echo "Usage: $0 {start|stop|restart|reload|checkconfig|status}"
exit 3
esac
exit 0