Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Redhat/CentoOS init.d Script #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arleslie-zz
Copy link

Very basic init.d script for Redhat/CentOS.

  • This will run as root

This was based of the Debian script by Joe Niland.

Features: Start, Stop and Status

Very basic init.d script for Redhat/CentOS.
- This will run as root -
@arleslie-zz
Copy link
Author

Someone with understanding of the daemon function could make it not run as root.
I had issues with it and getting the pidfile to work.

daemon --user=$DAEMON_USER $JAVA -jar $DAEMON &> /dev/null &

the --pidfile argument never wrote to the file and $! gets a different PID.

@jstenhouse
Copy link
Contributor

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?

@arleslie-zz
Copy link
Author

@jstenhouse, unfortunately I did not see that script before, I'll try it
out in a few days and let you know how it goes.
On Sep 18, 2014 5:38 PM, "Jason Stenhouse" [email protected] wrote:

Thanks @arleslie https://github.com/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?


Reply to this email directly or view it on GitHub
#71 (comment)
.

@cdodd
Copy link

cdodd commented Oct 23, 2014

I'm using the init script scripts/etc/init.d/newrelic-mysql-plugin.rh on CentOS in production and it works fine for me.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants