#!/usr/bin/execlineb -P

envfile /etc/s6-rc/config/ufw.conf
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES

foreground { if -nt { test -d /var/log/ufw } install -dm755 -o s6log -g s6log /var/log/ufw }
pipeline { ufw enable } s6-setuidgid s6log exec -c s6-log -b -- ${DIRECTIVES} /var/log/ufw
