[systemd-commits] src/systemctl.c

Lennart Poettering lennart at kemper.freedesktop.org
Thu Jul 1 06:19:54 PDT 2010


 src/systemctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 01b1b079c1de830dcd4a7b42675864ce7d6d84f3
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Jul 1 15:19:45 2010 +0200

    systemctl: fix detection of active units

diff --git a/src/systemctl.c b/src/systemctl.c
index d6f4709..390cec9 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -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);


More information about the systemd-commits mailing list