Can a service application restart itself as a service?
Francis Grizzly Smit
grizzly at smit.id.au
Thu May 20 13:19:35 UTC 2021
On 20/05/2021 22:23, Bo Berglund wrote:
> I am writing a service application for Linux.
> I want it to be able to restart itself, but I don't now the best way to do it.
I believe daemon tools does this but when I google it it doesn't seam to
be open source
> To use cron to issue "systemctrl restart service" at a given time does not cut
> it because the application might be busy doing things at that time.
> It has to be in an idle state when it restarts.
>
> The only thing I could figure out is if the application itself can restart the
> service from within when it has reached a safe idle spot.
>
> Any ideas?
>
>
--
.~. In my life God comes first....
/V\ but Linux is pretty high after that :-D
/( )\ Francis (Grizzly) Smit
^^-^^ http://www.smit.id.au/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210520/c5ea699e/attachment.html>
More information about the ubuntu-users
mailing list