updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / icinga / rc.icinga
blobb196dc26c2fd37eb9838ef51398e9a12a0e730ad
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 ICINGA_INIT="/etc/icinga/daemon-init"
7 case "$1" in
8 start)
9 stat_busy "Starting Icinga"
10 $ICINGA_INIT start > /dev/null 2>&1
11 if [ $? -gt 0 ]; then
12 stat_fail
13 else
14 add_daemon icinga
15 stat_done
18 stop)
19 stat_busy "Stopping Icinga"
20 $ICINGA_INIT stop > /dev/null 2>&1
21 if [ $? -gt 0 ]; then
22 stat_fail
23 else
24 rm_daemon icinga
25 stat_done
28 restart)
29 $0 stop
30 sleep 1
31 $0 start
33 reload|force-reload|status)
34 $ICINGA_INIT $1
37 echo "usage: $0 {start|stop|restart|reload|force-reload|status}"
38 esac
39 exit 0