#!/bin/sh
# Collect all logs which come to /dev/log
exec 2>&1
echo $(realpath $0) started

set -x
touch /var/log/nginx/access.log /var/log/nginx/error.log
exec tail -f /var/log/nginx/access.log /var/log/nginx/error.log
# exec chpst -Unobody socklog unix /dev/log
# exec socklog unix /dev/log
# exec socat UNIX-LISTEN:/dev/log,reuseaddr,fork -
