summaryrefslogtreecommitdiffstats
path: root/share/systemd/container-auto.service
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-18 17:19:11 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-03 11:36:02 +0000
commit47d54ddd9ab3634aa58315fe4e92d110a0609739 (patch)
tree5d3b894607f0f9e6e9eda54c86f465514ce2aa77 /share/systemd/container-auto.service
parentRemoving screen session handling in container-autostart program, containers s... (diff)
downloadcompute-tools-47d54ddd9ab3634aa58315fe4e92d110a0609739.tar.xz
compute-tools-47d54ddd9ab3634aa58315fe4e92d110a0609739.zip
Reworking container-autostart program into container auto command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/systemd/container-auto.service')
-rw-r--r--share/systemd/container-auto.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/systemd/container-auto.service b/share/systemd/container-auto.service
new file mode 100644
index 0000000..e9addd7
--- /dev/null
+++ b/share/systemd/container-auto.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=container-tools automatic start
+After=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/container auto --start
+ExecStop=/usr/bin/container auto --stop
+Delegate=yes
+StandardOutput=syslog
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target