Created
June 27, 2013 06:29
-
-
Save sobanvuex/5874377 to your computer and use it in GitHub Desktop.
NewRelic MySQL Plugin Upstart Job
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
description "start and stop Newrelic MySQL Java Plugin" | |
version "1.0" | |
author "Alex Soban" | |
env PLUGIN_VER=1.0.2 | |
env PLUGIN_DIR=/root/apps | |
env PLUGIN_NAME=newrelic_mysql_plugin | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
expect fork | |
pre-start script | |
end script | |
script | |
chdir $PLUGIN_DIR/$PLUGIN_NAME-$PLUGIN_VER | |
exec java -jar $PLUGIN_NAME-$PLUGIN_VER.jar &2>> /var/log/newrelic-mysql.log | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment