3 # munin-asyncd Start/Stop the munin-asyncd daemon.
5 # chkconfig: 2345 91 09
6 # description: munin-asyncd enables asyncronous fetching of
7 # metrics from munin-node in a Munin monitoring setup.
9 # processname: munin-asyncd
10 # pidfile: /var/run/munin-asyncd.pid
13 # Provides: munin-asyncd
14 # Required-Start: $local_fs $remote_fs $network
15 # Required-Stop: $local_fs $remote_fs $network
16 # Default-Start: 2 3 4 5
18 # Short-Description: Starts and stops munin-asyncd
19 # Description: munin-asyncd enables asyncronous fetching of
20 # metrics from munin-node in a Munin monitoring setup.
23 # Source function library.
24 . /etc/rc.d/init.d/functions
27 # Check if the service is already running?
28 if [ -f /var/lock/subsys/munin-asyncd ]; then
29 msg_already_running "munin-asyncd"
33 msg_starting "munin-asyncd"
34 daemon /usr/sbin/munin-asyncd
36 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/munin-asyncd
40 if [ ! -f /var/lock/subsys/munin-asyncd ]; then
41 msg_not_running "munin-asyncd"
45 msg_stopping "munin-asyncd"
47 rm -f /var/lock/subsys/munin-asyncd
51 if [ ! -f /var/lock/subsys/munin-asyncd ]; then
52 msg_not_running "munin-asyncd"
62 # See how we were called.
70 restart|reload|force-reload)
78 status --pidfile /var/run/munin-asyncd.pid munin-asyncd
82 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"