systemctl: fix detection of active units
This commit is contained in:
parent
51cfdda7e2
commit
01b1b079c1
|
@ -969,7 +969,7 @@ static int check_unit(DBusConnection *bus, char **args, unsigned n) {
|
||||||
if (!arg_quiet)
|
if (!arg_quiet)
|
||||||
puts(state);
|
puts(state);
|
||||||
|
|
||||||
if (streq(state, "active") || startswith(state, "active-"))
|
if (streq(state, "active") || startswith(state, "reloading"))
|
||||||
r = 0;
|
r = 0;
|
||||||
|
|
||||||
dbus_message_unref(m);
|
dbus_message_unref(m);
|
||||||
|
|
Loading…
Reference in New Issue