logutil-service-main 364 B

1234567891011
  1. #!/bin/execlineb -S1
  2. # this env decides what to log and how.
  3. backtick -D "n20 s1000000 T" -n S6_LOGGING_SCRIPT { printcontenv S6_LOGGING_SCRIPT }
  4. importas -u -sCd" \t" S6_LOGGING_SCRIPT S6_LOGGING_SCRIPT
  5. # execute s6-log and drop root rights in favor of nobody
  6. s6-envuidgid -D 32768:32768 nobody
  7. s6-applyuidgid -U
  8. exec -c
  9. s6-log -bp -- ${S6_LOGGING_SCRIPT} ${1}