diff options
Diffstat (limited to 'src/lib/service/system/s6-svscan-log')
| -rw-r--r-- | src/lib/service/system/s6-svscan-log/notification-fd | 1 | ||||
| -rwxr-xr-x | src/lib/service/system/s6-svscan-log/run | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/service/system/s6-svscan-log/notification-fd b/src/lib/service/system/s6-svscan-log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/src/lib/service/system/s6-svscan-log/notification-fd @@ -0,0 +1 @@ +3 diff --git a/src/lib/service/system/s6-svscan-log/run b/src/lib/service/system/s6-svscan-log/run new file mode 100755 index 0000000..e8c4022 --- /dev/null +++ b/src/lib/service/system/s6-svscan-log/run @@ -0,0 +1,15 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 1 2 + +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 -- @logconfig@ @tmpfsdir@/@sysrundir@/log/uncaught-logs |
