[fpc-pascal] Stopping daemon in linux
Marco van de Voort
marcov at stack.nl
Sun Nov 8 21:49:50 CET 2009
In our previous episode, Wimpie Nortje said:
> Marco van de Voort wrote:
> > In our previous episode, Wimpie Nortje said:
> >> I am writing an application using lazdaemon. How does one stop the
> >> daemon gracefully, ie not killing it.
> >> The wiki says the daemon runs until it receives the TERM signal. THe
> >> only way I know to send the TERM signal is using 'kill'. This kills the
> >> app rather letting it exit gracefully.
> > Known issue, see
> > http://bugs.freepascal.org/view.php?id=14741
> > there are some more signals that are handled.
> Are there plans to fix/change this, or must I implement some kind of pid
> check myself?
No plans yet. The problem is also a bit that whatever you do is an island. I
think this is more something for freedesktop to standarize first.
> I also see a mention of a '-b' parameter in the report but it doesn't
> daemonize my application. Is it new? I am using fpc 2.2.4
It's in combination with start only. I just happened to look in those sources
today before your msg because of the above report. I don't know the history.
More information about the fpc-pascal