[lug] Running a PHP script as a daemon
Zan Lynx
zlynx at acm.org
Wed May 17 17:53:48 MDT 2006
On Wed, 2006-05-17 at 16:07 -0600, Jason Vallery wrote:
> Thanks all for your help. I've got it working as suggested by Sean in
> inittab. I'm still having trouble with respawn. Under some condition
> it seems to restart correctly, but not always.
>
> How exactly does respawn work?
>
> -Jason
If the program dies or exits, it gets started again.
Except in this case!
"If init finds that it is continuously respawning an entry more than 10
times in 2 minutes, it will assume that there is an error in the
command string, generate an error message on the system console, and
refuse to respawn this entry until either 5 minutes has elapsed or it
receives a signal." -- init man page
--
Zan Lynx <zlynx at acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20060517/554a4e37/attachment.pgp>
More information about the LUG
mailing list