#!/bin/execlineb -S0

backtick -D 0 -n S6_LOGGING { printcontenv S6_LOGGING }
importas -u S6_LOGGING S6_LOGGING
ifelse { s6-test ${S6_LOGGING} -ne 0 }
{
  redirfd -w 1 /var/run/s6/uncaught-logs-fifo
  fdmove -c 2 1
  $@
}
$@
