]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredumpctl: avoid spurious warning about systemd-coredump@0.service 5458/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Mar 2017 02:47:45 +0000 (21:47 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Mar 2017 02:47:45 +0000 (21:47 -0500)
Fixes #5477.

src/coredump/coredumpctl.c

index 93d5e1c9d14582bcb9ddf964a9fcd709ce13a0de..3e9a00bbcf78d4b641af66506351fd280897c33a 100644 (file)
@@ -1003,7 +1003,7 @@ static int check_units_active(void) {
                                 reply, "(ssssssouso)",
                                 &id,  NULL,  NULL,  &state,  &substate,
                                 NULL,  NULL,  NULL,  NULL,  NULL)) > 0) {
-                bool found = !STR_IN_SET(state, "dead", "failed");
+                bool found = !STR_IN_SET(state, "inactive", "dead", "failed");
                 log_debug("Unit %s is %s/%s, %scounting it.", id, state, substate, found ? "" : "not ");
                 c += found;
         }