summarylogtreecommitdiffstats
path: root/init.d.check_mk
diff options
context:
space:
mode:
authorGeorg Pichler2016-11-16 01:24:40 +0100
committerGeorg Pichler2016-11-16 01:24:40 +0100
commitdea82ecc1051ec53759d3402c1f631560a51858d (patch)
treea091249047fedd7cb22f401b96da94e3e53c970f /init.d.check_mk
parente88f2f460d95378d395b8328e63d145fe748150d (diff)
downloadaur-dea82ecc1051ec53759d3402c1f631560a51858d.tar.gz
Nagios now restarts properly
Diffstat (limited to 'init.d.check_mk')
-rwxr-xr-xinit.d.check_mk29
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