daemon restart scripts

Andreas Ericsson ae at op5.se
Thu Jan 13 16:38:59 CET 2005


Fred Blaise wrote:
> Hello all
> 
> What would be the easiest way to implement restart scripts, for when a
> daemon is down, to try to bring it back up?
> 

Something like this;
rm -f daemon.{pid,lock}
killall -9 daemon
/etc/init.d/daemon start.

In plaintext; Remove all pid- and lockfiles. Kill any stragglers. Start 
the daemon the way it's usually started.

> Any pointers greatly appreciated.
> 
> Thanks.
> 
> 	))fred

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list