blob: dff43d08c3e29b90ec018137e3e47add0cbdf7db (
plain)
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
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/mon/files/mon.rc6,v 1.4 2004/07/14 21:15:04 agriffis Exp $
depend() {
need clock
}
checkconfig() {
if [ ! -e /etc/mon/mon.cf ] ; then
eerror "You need an /etc/mon/mon.cf file to run mon"
eerror "There is a sample at /etc/mon/mon.cf.sample"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting mon"
start-stop-daemon --start --quiet --exec /usr/sbin/mon -- -P /var/run/mon.pid -f 1>&2
eend $?
}
stop() {
ebegin "Stopping mon"
start-stop-daemon --stop --quiet --pid /var/run/mon.pid 1>&2
eend $?
}
|