3 # munin-node Control the Munin Node Server (formerly Linpro RRD client)
5 # chkconfig: 2345 90 10
6 # description: munin node agents
7 # processname: munin-node
8 # config: /etc/munin/munin-node.conf
9 # pidfile: /var/run/munin/munin-node.pid
11 # Source function library.
12 . /etc/rc.d/init.d/functions
17 mkdir -p /var/run/munin 2>/dev/null
18 chown munin /var/run/munin
20 # See how we were called.
23 if [ ! -f /var/lock/subsys/munin-node ]; then
24 msg_starting "Munin Node"
25 daemon --fork --waitfortime 3 --waitforname munin-node munin-node
27 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/munin-node
29 msg_already_running "Munin Node"
33 if [ -f /var/lock/subsys/munin-node ]; then
34 msg_stopping "Munin Node"
37 rm -f /var/lock/subsys/munin-node >/dev/null 2>/dev/null
39 msg_not_running "Munin Node"
52 echo "Usage: $0 {start|stop|status|restart}"