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

2021-05-20 Thread Travis Siegel via fpc-pascal
If you didn't have the configuration setup as required, you could still spawn a second process to kill and restart your process as well, this works too, but Michael's suggestion is probably much cleaner, and in all likelihood, is probably the preferred method, but I know folks struggle with the

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

2021-05-20 Thread Bo Berglund via fpc-pascal
On Thu, 20 May 2021 17:13:16 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: > > >On Thu, 20 May 2021, Bo Berglund via fpc-pascal wrote: > >> On Thu, 20 May 2021 14:52:47 +0200 (CEST), Michael Van Canneyt via fpc-pascal >> wrote: >> >>> >>> >>> On Thu, 20 May 2021, Bo Berglund via fpc-pa

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

2021-05-20 Thread Michael Van Canneyt via fpc-pascal
On Thu, 20 May 2021, Bo Berglund via fpc-pascal wrote: On Thu, 20 May 2021 14:52:47 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: 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 nothi

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

2021-05-20 Thread Bo Berglund via fpc-pascal
On Thu, 20 May 2021 14:52:47 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: > > >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

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

2021-05-20 Thread Michael Van Canneyt via fpc-pascal
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 configu

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

2021-05-20 Thread Bo Berglund via fpc-pascal
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)? It is running in a RaspberryPi so it is a Debian derivative Linux. -- Bo Berglund Dev