[fpc-pascal] respawn a daemon in Linux

Michael Schnell mschnell at lumino.de
Tue Jan 14 11:46:19 CET 2014


On 01/14/2014 11:32 AM, Michael Van Canneyt wrote:
> #!/bin/bash
> while [ 1 ]; do
>   yourprogram youroptions
> done

I feel this will start multiple parallel copies of the program and not 
wait until the previous one dies.

Moreover I understand that this loop will never exit. Hence I can't use 
it an init.d script, but in the calling script need to do something 
based on "bash ... &" to have the "respawn" script run in parallel.

-Michael



More information about the fpc-pascal mailing list