about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2025-09-22 20:46:32 +0200
committerRobert Günzler <r@gnzler.io>2025-09-22 20:47:01 +0200
commitd7403fde0dc625c3aa39946f0144ba266d891d86 (patch)
tree2d2202795764b59d1c6cc3a8a355b8943563e7ef
parent11df0f99f8218a7461f5717cf162bd28eb6acb00 (diff)
run-image: dont hardcode runtime dir
Signed-off-by: Robert Günzler <r@gnzler.io>
-rwxr-xr-xrun-image/service/s6-svscan-log/run7
1 files changed, 4 insertions, 3 deletions
diff --git a/run-image/service/s6-svscan-log/run b/run-image/service/s6-svscan-log/run
index e780032..3d1b0da 100755
--- a/run-image/service/s6-svscan-log/run
+++ b/run-image/service/s6-svscan-log/run
@@ -1,8 +1,9 @@
 #!/bin/execlineb -P
 
-importas -SuD "n2 s2000000 T" LOG_DIRECTIVES
+importas -S -D "/run" XDG_RUNTIME_DIR
+importas -SCuD "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
+if { install -d ${XDG_RUNTIME_DIR}/uncaught-logs }
+s6-log -d3 -bp -- ${LOG_DIRECTIVES} ${XDG_RUNTIME_DIR}/uncaught-logs