[systemd-commits] src/systemctl
Lennart Poettering
lennart at kemper.freedesktop.org
Fri Mar 1 05:00:50 PST 2013
src/systemctl/systemctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5522a1fa876f1ab94a2accaadca824799fdf2cab
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Mar 1 13:59:49 2013 +0100
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
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index c67c6c9..418a80b 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -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);
}
More information about the systemd-commits
mailing list