1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00
webvirtcloud/conf/runit/nginx-log-forwarder

9 lines
175 B
Text
Raw Normal View History

2015-10-15 12:47:10 +00:00
#!/bin/bash
# Forwards the Nginx error.log to the Docker logs.
set -e
if [[ -e /var/log/nginx/error.log ]]; then
exec tail -F /var/log/nginx/error.log
else
exec sleep 10
fi