mirror_lxc/config/init/systemd/lxc-net.service.in
Serge Hallyn 4ed565e51a lxc-net: switch After target to network-online.target
Otherwise it may start too early and end up taking 10.0.3.1 even
though eth0 was eventually going to end up on 10.0.3.x.

https://bugs.launchpad.net/juju-core/+bug/1510619

Reported-by: Ryan Harper <ryan.harper@ubuntu.com>
Cc: Martin Pitt <martin.pitt@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
2015-10-29 17:56:33 -04:00

14 lines
253 B
SYSTEMD

[Unit]
Description=LXC network bridge setup
After=network-online.target
Before=lxc.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=@LIBEXECDIR@/lxc/lxc-net start
ExecStop=@LIBEXECDIR@/lxc/lxc-net stop
[Install]
WantedBy=multi-user.target