]> git.netwichtig.de Git - user/henk/code/puppet/modules/s6.git/blobdiff - files/usr/local/bin/s6-svscanboot
fix: wait until s6-svscan is ready
[user/henk/code/puppet/modules/s6.git] / files / usr / local / bin / s6-svscanboot
index 7a5f549023e27d128c8878d8826749558aeec54c..f2b6e35931797e96a485ce41c83d85c780e574bc 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