summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-01 13:59:49 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-01 13:59:49 +0100
commit5522a1fa876f1ab94a2accaadca824799fdf2cab (patch)
treed21425af91bd953da11f0ebfd20095c154f58c62 /src/systemctl/systemctl.c
parent82910f1358c1d15f4e432e6d1f42efdeaf1eddb1 (diff)
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
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index c67c6c972a..418a80b6f0 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);
}