aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/service/system/.s6-svscan/crash
diff options
context:
space:
mode:
authorPS <p@0x53.net>2026-02-07 10:19:41 +0100
committerPS <p@0x53.net>2026-02-07 10:19:41 +0100
commit891a3316a22acdc57a2e65429f4d59ada268410c (patch)
tree8ab743269d43b20786f598680d1f6c8818cbb055 /src/lib/service/system/.s6-svscan/crash
parent0f936e1351d95d7b7bb8ac4b64fc2a87f2982d8c (diff)
downloadgoetia-freebsd-init-891a3316a22acdc57a2e65429f4d59ada268410c.tar.gz
goetia-freebsd-init-891a3316a22acdc57a2e65429f4d59ada268410c.tar.bz2
goetia-freebsd-init-891a3316a22acdc57a2e65429f4d59ada268410c.zip
Add .s6-svscan directory
Diffstat (limited to 'src/lib/service/system/.s6-svscan/crash')
-rwxr-xr-xsrc/lib/service/system/.s6-svscan/crash10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/service/system/.s6-svscan/crash b/src/lib/service/system/.s6-svscan/crash
new file mode 100755
index 0000000..25d71ae
--- /dev/null
+++ b/src/lib/service/system/.s6-svscan/crash
@@ -0,0 +1,10 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+redirfd -w 2 /dev/console
+fdmove -c 1 2
+
+foreground { echo "s6-svscan crashed. Rebooting." }
+
+shutdown -o -r now