[fpc-pascal] Can a console app running as Linux service restart itself?

Michael Van Canneyt michael at freepascal.org
Thu May 20 14:52:47 CEST 2021



On Thu, 20 May 2021, Bo Berglund via fpc-pascal wrote:

> I would like my service application to restart itself once per 24 hours, but
> only when nothing else is going on. So the application itself would know this
> but how can I make it restart itself (as the service)?

Just exit ? 
If you configured systemd to start your app correctly it will restart it.

Michael.


More information about the fpc-pascal mailing list