newrelic-platform/newrelic_mysql_java_plugin — pull request #36 by ronaldbradford (2013-08-12 16:10:20+00:00)
Title: Initial Version of RedHat specific init.d script

Can't say I've ever written an init.d script (nor do I state the daemonizing of Java is best done with nohup) however this initial version if functional and I welcome any feedback.

$ /etc/init.d/newrelic-mysql-plugin start
Starting newrelic-mysql-plugin:
$ ps -ef | grep java
root 2682 1 48 15:52 pts/0 00:00:02 /usr/bin/java -jar newrelic_mysql_plugin-1.0.6.jar
root 2721 25479 0 15:52 pts/0 00:00:00 grep java
$ tail -f /var/log/newrelic-mysql-plugin.log
INFO: Using configuration file /home/rbradfor/newrelic_mysql_plugin-1.0.6/config/newrelic.properties
INFO: New Relic monitor started
$/etc/init.d/newrelic-mysql-plugin stop
Shutting down newrelic-mysql-plugin:
$ ps -ef | grep java
root 2920 25479 0 15:53 pts/0 00:00:00 grep java