summaryrefslogtreecommitdiff
blob: c49f8fc512e40bfb7c3d20623dd933319baf8e0e (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

PIDFILE=/var/run/gmond.pid

depend() {
	need net
	after ntp-client ntpd
}

start() {
	ebegin "Starting GANGLIA gmond: "
	start-stop-daemon \
		--start --quiet \
		--exec /usr/sbin/gmond \
		--pidfile ${PIDFILE} \
		-- \
		--pid-file=${PIDFILE}
	eend $? "Failed to start gmond"
}

stop() {
	ebegin "Shutting down GANGLIA gmond: "
	start-stop-daemon \
		--stop --quiet \
		--pidfile ${PIDFILE} \
		--exec /usr/sbin/gmond
	eend $? "Failed to stop gmond"
}