summaryrefslogtreecommitdiff
path: root/files/etc
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2022-06-26 22:34:39 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2022-07-25 23:53:04 +0200
commit54da0fea16fe96e031150a7f87de4567aa6ddc0b (patch)
tree9d62241cbb17a502f237dd4137a098d683db2ed8 /files/etc
parent72b29d02cb6a7007944f81e0fb354f5ba833ed2f (diff)
work with systemd
Diffstat (limited to 'files/etc')
-rw-r--r--files/etc/systemd/system/s6.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/files/etc/systemd/system/s6.service b/files/etc/systemd/system/s6.service
new file mode 100644
index 0000000..3c3c7ec
--- /dev/null
+++ b/files/etc/systemd/system/s6.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=s6 supervision tree
+Documentation=https://skarnet.org/software/s6/
+
+[Install]
+WantedBy=multi-user.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/s6-svscan -t0 /etc/s6-scandir
+ExecStop=/usr/bin/s6-svscanctl -t /etc/s6-scandir
+ExecReload=/usr/bin/s6-svscanctl -an /etc/s6-scandir
+Restart=always
+RestartSec=1