From 980c5408489a3a3a56e49c3873f1bce6a0155cad Mon Sep 17 00:00:00 2001 From: PS Date: Sun, 1 Feb 2026 12:02:03 +0100 Subject: version 0.2.0.0 --- .../service/system/s6-svscan-log-console/notification-fd | 1 + src/lib/service/system/s6-svscan-log-console/run | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/lib/service/system/s6-svscan-log-console/notification-fd create mode 100755 src/lib/service/system/s6-svscan-log-console/run (limited to 'src/lib/service/system/s6-svscan-log-console') diff --git a/src/lib/service/system/s6-svscan-log-console/notification-fd b/src/lib/service/system/s6-svscan-log-console/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/src/lib/service/system/s6-svscan-log-console/notification-fd @@ -0,0 +1 @@ +3 diff --git a/src/lib/service/system/s6-svscan-log-console/run b/src/lib/service/system/s6-svscan-log-console/run new file mode 100755 index 0000000..63d32ba --- /dev/null +++ b/src/lib/service/system/s6-svscan-log-console/run @@ -0,0 +1,16 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 1 2 +redirfd -a 1 /dev/console + +if { mkdir -p -m750 -- @tmpfsdir@/@sysrundir@/log/uncaught-logs } +# fifo is created in prepare-svscan +if { chown -R @loguser@:@loguser@ @tmpfsdir@/@sysrundir@/log fifo } + +s6-setuidgid @loguser@ + +redirfd -rnb 0 fifo + +s6-log -bpd3 -- 1 @logconfig@ @tmpfsdir@/@sysrundir@/log/uncaught-logs -- cgit v1.2.3