mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
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:
parent
d4251ea5ca
commit
ebb2ec7e92
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user