Search found 1 match
- Sun Apr 21, 2024 11:29 pm
- Forum: Open Source Nagios Projects
- Topic: Starting a Linux process only if it isn't started
- Replies: 1
- Views: 374
Starting a Linux process only if it isn't started
I am writing a bash script that launches a service (in my case nagios). I want to start my script by running /etc/init.d/nagios start only if nagios is not running. I start my script with /etc/init.d/nagios stop /etc/init.d/nagios start ... I'm not sure it is the best way to go, I'd rather use an if...