Skip to content

Instantly share code, notes, and snippets.

@lennart
Forked from anonymous/gist:1717331
Created February 1, 2012 14:35
Show Gist options
  • Save lennart/1717337 to your computer and use it in GitHub Desktop.
Save lennart/1717337 to your computer and use it in GitHub Desktop.
A Gentoo startup script for the newrelic server monitor daemon
#!/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