Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created February 6, 2014 14:36
Show Gist options
  • Save marianogg9/8845357 to your computer and use it in GitHub Desktop.
Save marianogg9/8845357 to your computer and use it in GitHub Desktop.
# Rackspace NewRelic plugin
start on runlevel [2345]
stop on runlevel [016]
#script
#chdir /path/newrelic/newrelic_rs_dfw
#echo "DEBUG: `set`" >> /tmp/myjob.log
#echo '{"name": "check_respawn", "output": "newrelic_rs_dfw service respawned", "status": 2, "handlers": "twitter", "subscribers": "aws"}' | nc localhost 3030
#end script
exec procenv --file=/tmp/procenv-job.log --exec -- bundle exec ./bin/newrelic_rs
respawn
chdir /path/newrelic/newrelic_rs_dfw
exec bundle exec ./bin/newrelic_rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment