[systemd-devel] How can I simply check that a service has been restarted ?

Lennart Poettering lennart at poettering.net
Tue Nov 10 10:30:50 UTC 2020


On Di, 10.11.20 10:28, Francis Moreau (francis.moro at gmail.com) wrote:

> Hello,
>
> After restarting a service with "systemctl try-restart ..." I want to
> verify that the service has been restarted.
>
> How can I reliably do this without using the dbus API ?

D-Bus is how systemd exposes its state. If you don't want to use that,
you won't get the state information.

Sorry,

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list