chiark / gitweb /
systemctl: try to reload daemon after enable/disable only when not running in a chroot
[elogind.git] / src / systemctl / systemctl.c
index c67c6c972a1285567be791132dcf67414296209c..418a80b6f0375e064ca5cd738e9291901f47a5a8 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);
         }