From a60d4389923dbc15d1fd9d613cb9cb5ab4c7e520 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 19 Apr 2018 14:48:05 +0000 Subject: [PATCH] Tail logs Signed-off-by: Patrick Uiterwijk --- roles/bodhi2/base/templates/configmap.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/bodhi2/base/templates/configmap.yml b/roles/bodhi2/base/templates/configmap.yml index b4539e7e29..87dda7fa3f 100644 --- a/roles/bodhi2/base/templates/configmap.yml +++ b/roles/bodhi2/base/templates/configmap.yml @@ -36,7 +36,8 @@ data: mkdir /httpdir/run ln -s /etc/httpd/modules /httpdir/modules truncate --size=0 /httpdir/accesslog /httpdir/errorlog - httpd -f /etc/bodhi/httpd.conf -DFOREGROUND -DNO_DETACH + tail -f /httpdir/accesslog /httpdir/errorlog & + exec httpd -f /etc/bodhi/httpd.conf -DFOREGROUND -DNO_DETACH httpd.conf: |- Listen 0.0.0.0:8080 ServerRoot "/httpdir"