aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ROOT/img/tmpfs/service/.s6-svscan/crash
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ROOT/img/tmpfs/service/.s6-svscan/crash')
-rwxr-xr-x[l---------]examples/ROOT/img/tmpfs/service/.s6-svscan/crash14
1 files changed, 13 insertions, 1 deletions
diff --git a/examples/ROOT/img/tmpfs/service/.s6-svscan/crash b/examples/ROOT/img/tmpfs/service/.s6-svscan/crash
index 262c196..501e316 120000..100755
--- a/examples/ROOT/img/tmpfs/service/.s6-svscan/crash
+++ b/examples/ROOT/img/tmpfs/service/.s6-svscan/crash
@@ -1 +1,13 @@
-/etc/s6-init/crash \ No newline at end of file
+#!/command/execlineb -P
+
+# This file is run when an unrecoverable error happens
+# to s6-svscan. Edit it to suit your needs.
+
+cd /
+redirfd -r 0 /dev/console
+redirfd -w 1 /dev/console
+fdmove -c 2 1
+
+foreground { s6-echo "s6-svscan panicked! Dropping to a root shell.\n" }
+
+/bin/sh -i