Skip to content

Instantly share code, notes, and snippets.

Created February 1, 2012 14:33
Show Gist options
  • Save anonymous/1717331 to your computer and use it in GitHub Desktop.
Save anonymous/1717331 to your computer and use it in GitHub Desktop.
#!/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