[systemd-devel] From dbus notification, how to know service entered failed state and will not start without admin action

Michal Koutný mkoutny at suse.com
Tue Mar 1 18:18:05 UTC 2022


Hello.

On Sat, Feb 19, 2022 at 09:28:18AM +0530, Prashantkumar dhotre <cdprashanth at gmail.com> wrote:
> I see that in OnFailure behaviour is changed and these units in OnFailure
> gets triggerd when service is failed-and-will-not-restart-automatically.
> https://lists.freedesktop.org/archives/systemd-devel/2018-June/040879.html
> In such case, does systemd also send dbus signal  whenever it triggers
> OnFailure ?

I don't think so. (Unless you can infer it from the new unit starting
job that is announced on DBus.)

Possibly you may add your cleanup via OnFailure= drop-in?

Regards,
Michal


More information about the systemd-devel mailing list