summaryrefslogtreecommitdiff
path: root/app-emulation/lxd/files/lxd-containers-4.0.0.service
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/lxd/files/lxd-containers-4.0.0.service')
-rw-r--r--app-emulation/lxd/files/lxd-containers-4.0.0.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/app-emulation/lxd/files/lxd-containers-4.0.0.service b/app-emulation/lxd/files/lxd-containers-4.0.0.service
new file mode 100644
index 0000000..894760c
--- /dev/null
+++ b/app-emulation/lxd/files/lxd-containers-4.0.0.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=LXD - container startup/shutdown
+Documentation=man:lxd(1)
+After=lxd.socket lxd.service
+Requires=lxd.socket
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/lxd activateifneeded
+ExecStop=/usr/sbin/lxd shutdown
+TimeoutStartSec=600s
+TimeoutStopSec=600s
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target