feat(y2q): add stderr → stdout redirection for runit services with logging

This commit is contained in:
toast 2025-12-07 20:15:55 +09:00
parent fec6c21498
commit 431847b59f

View file

@ -52,6 +52,7 @@
source .env
set +a
'' else "";
stderrToStdout = if sCfg.log.enable then "exec 2>&1" else "";
in
lib.mkMerge [
{
@ -59,6 +60,7 @@
"runit/services/${serviceName}/run" = {
text = ''
#!/usr/bin/env bash
${stderrToStdout}
${envExports}
${envFileSetup}
${sCfg.script}