From e611471cadc353c3fa716ea2c0902c97f2f32490 Mon Sep 17 00:00:00 2001 From: ddubovsky Date: Thu, 22 Sep 2016 09:58:30 +0300 Subject: [PATCH] Add pid killer in order to prevent failure starting container after being stopped unexpectedly. --- run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.sh b/run.sh index d0d447f6..812e4bb4 100644 --- a/run.sh +++ b/run.sh @@ -10,4 +10,8 @@ fi source /etc/apache2/envvars tail -F /var/log/apache2/* & + +#Apache gets grumpy about PID files pre-existing +rm -f /var/run/apache2/apache2.pid + exec apache2 -D FOREGROUND