about summary refs log tree commit diff
path: root/run-image
diff options
context:
space:
mode:
Diffstat (limited to 'run-image')
-rwxr-xr-xrun-image/service/.s6-svscan/SIGTERM3
-rw-r--r--run-image/service/s6-svscan-log/notification-fd1
-rwxr-xr-xrun-image/service/s6-svscan-log/run8
3 files changed, 12 insertions, 0 deletions
diff --git a/run-image/service/.s6-svscan/SIGTERM b/run-image/service/.s6-svscan/SIGTERM
new file mode 100755
index 0000000..21a3d4c
--- /dev/null
+++ b/run-image/service/.s6-svscan/SIGTERM
@@ -0,0 +1,3 @@
+#!/bin/execlineb -P
+foreground { s6-rc -bDa }
+s6-svscanctl -t .
diff --git a/run-image/service/s6-svscan-log/notification-fd b/run-image/service/s6-svscan-log/notification-fd
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/run-image/service/s6-svscan-log/notification-fd
@@ -0,0 +1 @@
+3
diff --git a/run-image/service/s6-svscan-log/run b/run-image/service/s6-svscan-log/run
new file mode 100755
index 0000000..e780032
--- /dev/null
+++ b/run-image/service/s6-svscan-log/run
@@ -0,0 +1,8 @@
+#!/bin/execlineb -P
+
+importas -SuD "n2 s2000000 T" LOG_DIRECTIVES
+
+fdmove -c 1 2
+redirfd -rnb 0 fifo
+if { install -d /run/user/1000/uncaught-logs }
+s6-log -d3 -bp -- ${LOG_DIRECTIVES} /run/user/1000/uncaught-logs