aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-container/lxc/files/lxc-net.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-ic-container/recipes-container/lxc/files/lxc-net.service')
-rw-r--r--meta-agl-ic-container/recipes-container/lxc/files/lxc-net.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-agl-ic-container/recipes-container/lxc/files/lxc-net.service b/meta-agl-ic-container/recipes-container/lxc/files/lxc-net.service
new file mode 100644
index 00000000..1b6e8451
--- /dev/null
+++ b/meta-agl-ic-container/recipes-container/lxc/files/lxc-net.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=LXC network bridge setup
+After=network-online.target systemd-resolved.service
+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