[fpc-pascal] respawn a daemon in Linux
Michael Schnell
mschnell at lumino.de
Tue Jan 14 13:08:20 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.
>
> So you can't restart after a KILL, shouldn't after a TERM, might not
> want to after an INT (which, as we were discussing a few days ago,
> includes ^C from the keyboard) but probably do want to restart after a
> HUP. At the very least, you need to make sure that your program
> propagates why it's stopped to whatever's started it.
>
Thanks a lot. I'll do some tests.....
-Michael
More information about the fpc-pascal
mailing list