diff options
author | Georg Pichler | 2016-11-16 01:24:40 +0100 |
---|---|---|
committer | Georg Pichler | 2016-11-16 01:24:40 +0100 |
commit | dea82ecc1051ec53759d3402c1f631560a51858d (patch) | |
tree | a091249047fedd7cb22f401b96da94e3e53c970f /init.d.check_mk | |
parent | e88f2f460d95378d395b8328e63d145fe748150d (diff) | |
download | aur-dea82ecc1051ec53759d3402c1f631560a51858d.tar.gz |
Nagios now restarts properly
Diffstat (limited to 'init.d.check_mk')
-rwxr-xr-x | init.d.check_mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/init.d.check_mk b/init.d.check_mk new file mode 100755 index 000000000000..9ad0dfad2e0c --- /dev/null +++ b/init.d.check_mk @@ -0,0 +1,29 @@ +#!/bin/bash + +SERVICE=nagios + +stop() { + systemctl stop $SERVICE +} + +start() { + systemctl start $SERVICE +} + +restart() { + systemctl restart $SERVICE +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + restart + ;; + *) + echo "Usage: $0 {start|stop|restart}" +esac |