From 70a0c3a87300b5a897e51e5e37305e0d22fcf747 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 26 Nov 2019 14:57:12 +0000 Subject: [PATCH] Add 'init/entrypoint.sh' --- init/entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 init/entrypoint.sh diff --git a/init/entrypoint.sh b/init/entrypoint.sh new file mode 100644 index 0000000..2e1d243 --- /dev/null +++ b/init/entrypoint.sh @@ -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 "$@" \ No newline at end of file