Skip to content

Instantly share code, notes, and snippets.

@mainyaa
Last active December 30, 2015 11:09
Show Gist options
  • Save mainyaa/7820917 to your computer and use it in GitHub Desktop.
Save mainyaa/7820917 to your computer and use it in GitHub Desktop.
jetty.sh for supervisord with newrelic.
cd /var/www/HOGE
NR_JAR=/var/www/HOGE/newrelic/newrelic.jar
export NR_JAR
MAVEN_OPTS="$JAVA_OPTS -javaagent:$NR_JAR"
export MAVEN_OPTS
killall $(which java)
mvn clean compile jetty:run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment