[systemd-devel] systemd dbus signal failure

Lennart Poettering lennart at poettering.net
Wed Mar 1 11:34:45 UTC 2017


On Wed, 01.03.17 08:41, Patrik Laszlo (alabard at gmail.com) wrote:

> 
> *I catch all events:*
> 
>   UnitNew: 'UnitNew',
>             UnitRemoved: 'UnitRemoved',
>             JobNew: 'JobNew',
>             JobRemoved: 'JobRemoved',
>             StartupFinished: 'StartupFinished',
>             UnitFilesChanged: 'UnitFilesChanged',
>             Reloading: 'Reloading'*,*
> 
> *
> **The question, how can I receive a signal when a service goes into a failed
> state or any other triggered exit code?*

This is reported via a PropertiesChanged signal, using the normal dbus
property interface.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list