summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-28 21:47:45 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-28 21:47:45 -0500
commiteb5877a024a6da2177bf309a97ebd3e0641d7f2c (patch)
tree1122f2d92b04d455b9371f7c229222d5223da79c
parentb9aaa7f4801def92bb4753a780fe1c5302c4de16 (diff)
coredumpctl: avoid spurious warning about systemd-coredump@0.service
Fixes #5477.
-rw-r--r--src/coredump/coredumpctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c
index 93d5e1c9d1..3e9a00bbcf 100644
--- a/src/coredump/coredumpctl.c
+++ b/src/coredump/coredumpctl.c
@@ -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;
}