]> git.netwichtig.de Git - user/henk/code/puppet/modules/s6.git/blobdiff - files/usr/local/bin/s6-svscanboot.buster
fix: wait until s6-svscan is ready
[user/henk/code/puppet/modules/s6.git] / files / usr / local / bin / s6-svscanboot.buster
index ef6de1b3ec9fb07c57ee6393253d4e8e248a4d96..28aa5a1966dcc37e4dc0a9977236613a7045f7e5 100644 (file)
@@ -29,5 +29,12 @@ if { chmod 0755 ${1}/s6-svscan-log/run }
 redirfd -r 0 /dev/null
 redirfd -wnb 1 ${1}/s6-svscan-log/fifo
 fdmove -c 2 1
-s6-svscan -- ${1}
-
+piperw 3 4
+background {
+       fdclose 3
+       s6-setsid
+       s6-svscan -d4 -- ${1}
+}
+fdclose 4
+fdmove 1 3
+head -n 1