[Lazarus] Making a Linux systemd service, how does one handle the shutdown?
Bo Berglund
bo.berglund at gmail.com
Sun Jun 21 18:30:23 CEST 2020
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
More information about the lazarus
mailing list