Hi.
I have a script I want to run at Core startup.
It is a socket listener that I want started with Core and run the whole time Core is active.
Where is the best place to put the script execution?
Thanks, Rick
Run a script at Core Startup
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Run a script at Core Startup
About the best I can suggest would be to modify the init script (orsystemd service file) to load your script and kill it when nagios stops.
There is no mechanism in Core directly to start and stop scripts like this.
There is no mechanism in Core directly to start and stop scripts like this.
Re: Run a script at Core Startup
Thanks for the reply.
That would be fine but I see no orsystemd file
That would be fine but I see no orsystemd file
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Run a script at Core Startup
Depending on the OS you are running it usually is in /etc/init.d/nagios or /usr/lib/systemd/system/nagios.service
Re: Run a script at Core Startup
Hi.
I meant to get back to you a while ago.
This worked great.
Thanks for your help!
Rick
I meant to get back to you a while ago.
This worked great.
Thanks for your help!
Rick
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Run a script at Core Startup
No problem.grenley wrote:Hi.
I meant to get back to you a while ago.
This worked great.
Thanks for your help!
Rick
Locking thread
Re: Run a script at Core Startup
Glad to hear!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.