systemctl: try to reload daemon after enable/disable only when not running in a chroot

http://lists.freedesktop.org/archives/systemd-devel/2013-February/009208.html
This commit is contained in:
Lennart Poettering
2013-03-01 13:59:49 +01:00
parent 82910f1358
commit 5522a1fa87
+1 -1
View 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);
}