From 54da0fea16fe96e031150a7f87de4567aa6ddc0b Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Sun, 26 Jun 2022 22:34:39 +0200 Subject: work with systemd --- files/etc/systemd/system/s6.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 files/etc/systemd/system/s6.service (limited to 'files') 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 -- cgit v1.2.3