From d7403fde0dc625c3aa39946f0144ba266d891d86 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 22 Sep 2025 20:46:32 +0200 Subject: run-image: dont hardcode runtime dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- run-image/service/s6-svscan-log/run | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'run-image/service') 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 -- cgit 1.4.1