]>
Commit | Line | Data |
---|---|---|
58dca4e5 DW |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/monit | |
4 | # | |
5 | # Description : monit monitoring daemon | |
6 | # | |
7 | ######################################################################## | |
8 | ||
9 | . /etc/sysconfig/rc | |
10 | . ${rc_functions} | |
11 | ||
12 | case "${1}" in | |
13 | start) | |
14 | boot_mesg "Starting monit..." | |
bd34e32e | 15 | loadproc /usr/bin/monit |
58dca4e5 DW |
16 | ;; |
17 | ||
18 | stop) | |
19 | boot_mesg "Stopping monit..." | |
bd34e32e | 20 | killproc /usr/bin/monit |
58dca4e5 DW |
21 | ;; |
22 | ||
23 | restart) | |
24 | ${0} stop | |
25 | sleep 1 | |
26 | ${0} start | |
27 | ;; | |
28 | ||
29 | status) | |
bd34e32e | 30 | statusproc /usr/bin/monit |
58dca4e5 DW |
31 | ;; |
32 | ||
33 | *) | |
34 | echo "Usage: ${0} {start|stop|restart|status}" | |
35 | exit 1 | |
36 | ;; | |
37 | esac | |
38 | ||
39 | # End $rc_base/init.d/monit |