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);
cdecl;

begin
  Application.StopDaemons(True);
  Application.Terminate;
end;

If it doesn't, something is wrong :(

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to