chiark / gitweb /
systemctl: try to reload daemon after enable/disable only when not running in a chroot
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2013 12:59:49 +0000 (13:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2013 12:59:49 +0000 (13:59 +0100)
http://lists.freedesktop.org/archives/systemd-devel/2013-February/009208.html

src/systemctl/systemctl.c

index c67c6c9..418a80b 100644 (file)
@@ -3951,7 +3951,7 @@ static int enable_unit(DBusConnection *bus, char **args) {
                 }
 
                 /* Try to reload if enabeld */
-                if (!arg_no_reload)
+                if (!arg_no_reload && running_in_chroot() <= 0)
                         r = daemon_reload(bus, args);
         }