From ebb2ec7e9245927e66db5dd5daa817a3fce6f4d2 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Sun, 27 Dec 2020 16:30:12 +0100 Subject: [PATCH] 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. --- etc/initsystem/icinga2.init.d.cmake | 60 ++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/etc/initsystem/icinga2.init.d.cmake b/etc/initsystem/icinga2.init.d.cmake index c50dc9865..2f9ddfc7d 100644 --- a/etc/initsystem/icinga2.init.d.cmake +++ b/etc/initsystem/icinga2.init.d.cmake @@ -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