blob: fb07e19073c0bbfb6b29e15482742d0cec78c0e7 (
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/openrc-run
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"
}
|