[fpc-pascal] respawn a daemon in Linux

Michael Schnell mschnell at lumino.de
Tue Jan 14 14:00:52 CET 2014


On 01/14/2014 12:59 PM, Mark Morgan Lloyd wrote:
>
> They'll get a TERM first, and five seconds later a KILL. You don't 
> want to restart after that first signal, because if you wait until the 
> second one you risk leaving files etc. associated with the program in 
> an indeterminate state. I've had Qemu break a database inside NTFS by 
> refusing to honour a shutdown.
I'll insert a "sleep 10" in the loop and hope for the best :-) .

-Michael



More information about the fpc-pascal mailing list