summarylogtreecommitdiffstats
path: root/init.d.check_mk
blob: 9ad0dfad2e0ce8e372c5215d2e46b23f533bc24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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