summaryrefslogtreecommitdiff
blob: 36912b3fa09732f40e2b2f7a4b27987426f7de6e (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
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/files/monit.initd,v 1.2 2004/07/14 21:15:36 agriffis Exp $

opts="${opts} reload"

depend() {
	use net
}

start() {
	ebegin "Starting monit"
	start-stop-daemon --start --quiet --exec /usr/bin/monit >/dev/null 2>&1
	eend $?
}

stop() {
	ebegin "Stopping monit"
	start-stop-daemon --stop --quiet --pidfile /var/run/monit.pid
	eend $?
}

reload() {
	ebegin "Reloading monit"
	/usr/bin/monit -c /etc/monitrc reload >/dev/null 2>&1
	eend $?
}