mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
feat(y2q): add stderr → stdout redirection for runit services with logging
This commit is contained in:
parent
fec6c21498
commit
431847b59f
1 changed files with 2 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue