From af8d6b1a7bda632258985a574f14e32a761b39ce Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Thu, 2 Nov 2023 13:42:27 +0100 Subject: fix: simplify startup script --- files/etc/init.d/s6 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'files/etc') 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 \ -- cgit v1.2.3