Add 'init/entrypoint.sh'

This commit is contained in:
Danny Bessems 2019-11-26 14:57:12 +00:00
parent 58716798b0
commit 70a0c3a873

8
init/entrypoint.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# Allow Lighttpd to log as normal
chown -R lighttpd /var/log/lighttpd && chmod -R u+rw /var/log/lighttpd
# Duplicate log entries to stdout/stderr
tail -F -n 0 /var/log/lighttpd/access.log /var/log/lighttpd/error.log 2> /dev/null &
exec "$@"