mirror_lxc/config/init/systemd/lxc-net.service.in
Antonio Terceiro b9dd36af0c lxc-net: don't start by default inside lxc
When lxc is installed inside an lxc container, trying to bring up
lxc-net with the default parameters will conflict with the networking
setup for lxc on the host. This breaks all networking inside the
container where lxc is installed.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
2022-02-02 15:14:09 -03:00

16 lines
304 B
SYSTEMD

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