[fpc-pascal] Stopping daemon in linux

Michael Van Canneyt michael at freepascal.org
Mon Nov 9 09:07:45 CET 2009

On Mon, 9 Nov 2009, Wimpie Nortje wrote:

> Marc Santhoff wrote:
>> 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:
> That is what I did. This doesn't run my daemon's exit routines. I don't know 
> if Linux just kills the daemon or if the daemon receives the signal and exits 
> properly without calling the exit routines.

It should stop the daemons properly. This is the code that gets executed:

Procedure DoShutDown(Sig : Longint; Info : PSigInfo; Context : PSigContext);


If it doesn't, something is wrong :(


More information about the fpc-pascal mailing list