gentoo-overlay/sys-cluster/ganglia/files/gmond.rc-2

29 lines
473 B
Text
Raw Normal View History

#!/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"
}