-
-
Save lennart/1717337 to your computer and use it in GitHub Desktop.
A Gentoo startup script for the newrelic server monitor daemon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/runscript | |
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
depend() { | |
need net | |
} | |
start() { | |
ebegin "Starting New Relic System Monitor" | |
start-stop-daemon --start --exec /usr/local/bin/nrsysmond --pidfile /var/run/nrsysmond.pid --name newrelic-sysmond -- -c /etc/newrelic/nrsysmond.cfg -p /var/run/nrsysmond.pid | |
eend $? | |
} | |
stop() { | |
ebegin "Stopping New Relic System Monitor" | |
start-stop-daemon --stop --exec /usr/local/bin/nrsysmond --pidfile /var/run/nrsysmond.pid | |
eend $? | |
} | |
restart() { | |
stop | |
start | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment