chiark / gitweb /
systemctl: fix detection of active units
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Jul 2010 13:19:45 +0000 (15:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Jul 2010 13:19:45 +0000 (15:19 +0200)
src/systemctl.c

index d6f4709..390cec9 100644 (file)
@@ -969,7 +969,7 @@ static int check_unit(DBusConnection *bus, char **args, unsigned n) {
                 if (!arg_quiet)
                         puts(state);
 
-                if (streq(state, "active") || startswith(state, "active-"))
+                if (streq(state, "active") || startswith(state, "reloading"))
                         r = 0;
 
                 dbus_message_unref(m);