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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user