#!/bin/execlineb -S1

# this env decides what to log and how.
backtick -D "n20 s1000000 T" -n S6_LOGGING_SCRIPT { printcontenv S6_LOGGING_SCRIPT }
importas -u -sCd" \t" S6_LOGGING_SCRIPT S6_LOGGING_SCRIPT

# execute s6-log and drop root rights in favor of nobody
s6-envuidgid -D 32768:32768 nobody
s6-applyuidgid -U
exec -c
s6-log -bp -- ${S6_LOGGING_SCRIPT} ${1}
