summaryrefslogtreecommitdiff
path: root/system/s6/s6-svscanboot
diff options
context:
space:
mode:
authorLuis Ressel <aranea@aixah.de>2019-01-29 11:56:12 +0100
committerLuis Ressel <aranea@aixah.de>2019-01-29 12:00:17 +0100
commite72f41087521796b0711429b6b60ec2be3dae989 (patch)
tree6712357696f9831734915f1e3000c77ee72fbec2 /system/s6/s6-svscanboot
parent38abc8ab60bb141792bfca8c4df7a899e3810acb (diff)
downloadpackages-e72f41087521796b0711429b6b60ec2be3dae989.tar.gz
packages-e72f41087521796b0711429b6b60ec2be3dae989.tar.bz2
packages-e72f41087521796b0711429b6b60ec2be3dae989.tar.xz
packages-e72f41087521796b0711429b6b60ec2be3dae989.zip
system/s6: Bump to 2.7.2.2, fix s6-svscanboot crash handler
Diffstat (limited to 'system/s6/s6-svscanboot')
-rw-r--r--system/s6/s6-svscanboot9
1 files changed, 7 insertions, 2 deletions
diff --git a/system/s6/s6-svscanboot b/system/s6/s6-svscanboot
index 8fa8ec5d5..32eb5f290 100644
--- a/system/s6/s6-svscanboot
+++ b/system/s6/s6-svscanboot
@@ -12,14 +12,19 @@ umask 022
if { rm -rf /run/service /run/services }
if { mkdir -p -m 0755 /run/service/.s6-svscan /run/service/s6-svscan-log }
-if { ln -sf /bin/false /run/service/.s6-svscan/crash }
+if
+{
+ redirfd -w 1 /run/service/.s6-svscan/crash
+ heredoc 0 "#!/bin/execlineb -P\nfalse\n"
+ cat
+}
if
{
redirfd -w 1 /run/service/.s6-svscan/finish
heredoc 0 "#!/bin/execlineb -P\ns6-svc -X -- \"/run/service/s6-svscan-log\"\n"
cat
}
-if { chmod 0755 /run/service/.s6-svscan/finish }
+if { cd /run/service/.s6-svscan chmod 0755 crash finish }
# Directory for the catch-all logger to store its logs