[lxc-devel] [PATCH] systemd: fix lxc-containers vs lxc-net ordering (v3)

Serge Hallyn serge.hallyn at ubuntu.com
Tue Jun 30 14:12:51 UTC 2015


Per pitti's suggestion, use After= to force lxc to wait for lxc-net to finish
running.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
 config/init/systemd/lxc.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/init/systemd/lxc.service.in b/config/init/systemd/lxc.service.in
index a256141..3b49c75 100644
--- a/config/init/systemd/lxc.service.in
+++ b/config/init/systemd/lxc.service.in
@@ -1,6 +1,6 @@
 [Unit]
 Description=LXC Container Initialization and Autoboot Code
-After=syslog.target network.target
+After=syslog.target network.target lxc-net.service
 Wants=lxc-net.service
 
 [Service]
-- 
2.1.4



More information about the lxc-devel mailing list