summaryrefslogtreecommitdiff
path: root/examples/ROOT/etc/s6-init/crash
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-19 01:28:09 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-19 01:28:09 +0000
commitdf8c8876bc245c6124dd4691e5a95d8f397ca152 (patch)
treefcfec66704123b58c286aab83af16ab1b5248a21 /examples/ROOT/etc/s6-init/crash
parent90acd08f35f9691753fdd523c6970365b6ea4b73 (diff)
downloads6-df8c8876bc245c6124dd4691e5a95d8f397ca152.tar.xz
Add examples/ subtree
Diffstat (limited to 'examples/ROOT/etc/s6-init/crash')
-rwxr-xr-xexamples/ROOT/etc/s6-init/crash13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/ROOT/etc/s6-init/crash b/examples/ROOT/etc/s6-init/crash
new file mode 100755
index 0000000..501e316
--- /dev/null
+++ b/examples/ROOT/etc/s6-init/crash
@@ -0,0 +1,13 @@
+#!/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