Conversation
Very basic init.d script for Redhat/CentOS. - This will run as root -
|
Someone with understanding of the daemon function could make it not run as root. the --pidfile argument never wrote to the file and $! gets a different PID. |
|
Thanks @arleslie for the PR and sorry for the delay in responding! Did you take a look at https://github.com/newrelic-platform/newrelic_mysql_java_plugin/blob/master/scripts/etc/init.d/newrelic-mysql-plugin.rh ? I think that was meant to be an init.d script for RedHat. Have you given it a try? |
|
@jstenhouse, unfortunately I did not see that script before, I'll try it
|
|
I'm using the init script scripts/etc/init.d/newrelic-mysql-plugin.rh on CentOS in production and it works fine for me. |
|
|
Very basic init.d script for Redhat/CentOS.
This was based of the Debian script by Joe Niland.
Features: Start, Stop and Status