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 d6f4709c42d34a34023392cbd6a139be5f1ce4c5..390cec9f9a792715a954951a1412be9bc4936cab 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);