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

View File

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