[systemd-devel] Confused about failed service reporting

Lennart Poettering lennart at poettering.net
Mon Mar 26 09:03:45 PDT 2012


On Mon, 26.03.12 03:33, Edward Z. Yang (ezyang at MIT.EDU) wrote:

> A few weeks ago, yum-updatesd died due to the following bug
> https://bugzilla.redhat.com/show_bug.cgi?id=709315
> 
> This is exactly something that we would like systemd to report
> us.  However, while interacting with servers with the dead
> yum-updatesd, we found it didn't show up when we ran
> systemctl --failed.  When we ran normal diagnostics, we got:
> 
> [root at better-mousetrap ~]# systemctl status yum-updatesd.service
> yum-updatesd.service - YUM Package  Update Service
>       Loaded: loaded (/lib/systemd/system/yum-updatesd.service)
>       Active: inactive (dead)
>       CGroup: name=systemd:/system/yum-updatesd.service
> 
> What's up with that? (Is this yet another "upgrade systemd,
> and all ye problems will go away?")

If I read the bug report properly yum-updatesd simply didn't detect
properly whether a network connection was around. 

systemd will only store the execution results of services, and if they
don't actually report any errors then we won't record that as
"failed". A daemon may report an error by crashing, by timing out or by
returning with a non-zero exit code.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list