blob: 0dcac8a40d8ddacf93de1f89f9a323f64a7dad6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
if [ -a "/var/run/munin/munin-node.pid" ]; then
NODE_PID="`cat /var/run/munin/munin-node.pid`"
fi
function munin_node_start {
/usr/sbin/munin-node
}
function munin_node_stop {
kill -9 $NODE_PID &> /dev/null
}
if [ "$1" == "start" ]; then
munin_node_start
elif [ "$1" == "stop" ]; then
munin_node_stop
elif [ "$1" == "restart" ]; then
munin_node_stop
munin_node_start
fi
|