[fpc-pascal] respawn a daemon in Linux
Michael Schnell
mschnell at lumino.de
Tue Jan 14 12:01:40 CET 2014
On 01/14/2014 11:52 AM, Michael Van Canneyt wrote:
> Of course it will wait. A script always waits till a command exits.
I see. Thanks (silly me).
> In your init.d script you need launch the above script (call it
> loopmyprogram) in the usual manner, in the background.
Is there a more recommended "usual manner" to launch a script in the
background than using "&" (which I did not test with scripts yet, just
with applications)
>
> All this is IMHO preferable to modifying your program, which may
> introduce additional bugs, unforeseen cases etc...
It seems to be really simple so I'll just do a test tonight.
-Michael
More information about the fpc-pascal
mailing list