I have read that a systemd service on Linux will be taken down by the service manager using kill -TERM, i.e. the application is given a chance for a clean shutdown.
So my question is: How/where do I implement a handler for the terminate message in a FreePascal console application (no GUI or form available)? I have never done anything similar to this but I think that this might be a way to solve my problem of porting a Windows TService application to Linux by changing the framework from the Delphi TService to a simple program... -- Bo Berglund Developer in Sweden -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus