File: S99mon

package info (click to toggle)
mon 0.99.2-9
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 908 kB
  • ctags: 299
  • sloc: perl: 9,801; ansic: 778; sh: 372; makefile: 122
file content (45 lines) | stat: -rwxr-xr-x 782 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
#
# start/stop the mon server
#
# You probably want to set the path to include
# nothing but local filesystems.
#
# chkconfig: 2345 99 10
# description: mon system monitoring daemon
# processname: mon
# config: /etc/mon/mon.cf
# pidfile: /var/run/mon.pid
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
export PATH

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
    start)
	echo -n "Starting mon daemon: "
	daemon /usr/lib/mon/mon -c /etc/mon/mon.cf
	echo
	touch /var/lock/subsys/mon
	;;
    stop)
	echo -n "Stopping mon daemon: "
	killproc mon
	echo
	rm -f /var/lock/subsys/mon
	;;
    status)
    	status mon
	;;
    restart)
    	killall -HUP mon
	;;
    *)
    	echo "Usage: mon {start|stop|status|restart}"
	exit 1
esac

exit 0