[Asterisk-Users] Check and restart script..

Maik Schmitt asterisk-users at admininside.org
Thu Sep 25 20:23:11 MST 2003


> While thinking about it, you could have a single program (run from init
> perhaps) that:
> 1) Watches for the timestamp being older than x minutes
> 2)  Generates a file to drop in the outbound directory every few minutes
> 3)  Reads a config file on each loop so you can change the settings (i.e.
> turn it off, lengthen time of each loop)

What if that process gets killed or produces an error? I think it
would be better to use cron to start the prog every minute or so.

> It's important to be able to stop the watchdog easily, as it makes it hard
> to do maintenence when the watchdog keeps bringing the server back up....
> :-)

Deactivate the cron job or make the prog check for a 'lock'-file...

-- 
Maik Schmitt        http://graphics.cs.uni-sb.de/VoIP
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20030925/3ac382f5/attachment.pgp


More information about the asterisk-users mailing list