How to restart a systemctl service from within the process
Colin Law
clanlaw at gmail.com
Mon Nov 23 08:50:53 UTC 2020
On Sun, 22 Nov 2020 at 18:46, Colin Watson <cjwatson at ubuntu.com> wrote:
> ...
> "systemctl restart" is implemented as sending a single D-Bus method call
> (RestartUnit) to pid 1, so I believe this will indeed currently work
> since it's pid 1 that's doing the actual restart work and all that the
> systemctl process is doing after sending the request is waiting for it
> to respond. I don't think this implementation detail is officially
> documented or guaranteed, though, so it might change in future;
Great, thanks very much Colin
Colin L.
More information about the ubuntu-users
mailing list