summaryrefslogtreecommitdiff
path: root/files/etc
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2023-11-02 13:42:27 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2023-11-02 20:48:27 +0100
commitaf8d6b1a7bda632258985a574f14e32a761b39ce (patch)
tree30592965d5219d2bfd05ea6f36e162549f4d7687 /files/etc
parent795801ce2490026d3ec40b4c0abb4c1cbe06c567 (diff)
fix: simplify startup script
Diffstat (limited to 'files/etc')
-rw-r--r--files/etc/init.d/s65
1 files changed, 5 insertions, 0 deletions
diff --git a/files/etc/init.d/s6 b/files/etc/init.d/s6
index 29bf0e2..f99e11d 100644
--- a/files/etc/init.d/s6
+++ b/files/etc/init.d/s6
@@ -35,6 +35,9 @@ case "$1" in
/sbin/start-stop-daemon \
--start \
--oknodo \
+ --make-pidfile \
+ --pidfile /run/s6-svscan.pid \
+ --background \
--chdir "${SCANDIR}" \
--exec "${DAEMON}" \
-- "${DAEMON_ARGS}"
@@ -48,6 +51,8 @@ case "$1" in
/sbin/start-stop-daemon \
--stop \
--oknodo \
+ --remove-pidfile \
+ --pidfile /run/s6-svscan.pid \
--retry TERM/60/KILL/10 \
--exec /usr/bin/s6-svscan
/sbin/start-stop-daemon \