summaryrefslogtreecommitdiff
path: root/examples/ROOT/etc/s6-init/crash
blob: 501e316af7cbc6311dce935f44a391367ce4d11d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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