[fpc-pascal] Stopping daemon in linux
Marc Santhoff
M.Santhoff at web.de
Sun Nov 8 21:49:31 CET 2009
Am Sonntag, den 08.11.2009, 21:18 +0200 schrieb Wimpie Nortje:
> Hi
>
> 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.
You can send any defined signal using kill. Try:
# kill -TERM <yourdeamon>
for sending the TERM signal. At least FreeBSDs kill works that way. If
yours doesn't try:
$ man kill
HTH,
--
Marc Santhoff <M.Santhoff at web.de>
More information about the fpc-pascal
mailing list