From 3860c5b8ed9e1c5398cc93c389a3b2794c9360a3 Mon Sep 17 00:00:00 2001 From: Terry Chen Date: Thu, 27 Jul 2017 11:35:57 +0800 Subject: [PATCH] To fix the issue that the container started twice Reference: https://github.com/docker-library/php/issues/187 --- README.md | 3 +++ setup.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 57adbf5..bd62b07 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ docker run -d \ ## Changelog +* 2017-07-27: version 0.1.2 + * Fix the container started twice: "httpd (pid 13) already running" + * 2017-04-28: version 0.1.1 * Fix http server doesn't start after the container restarted diff --git a/setup.sh b/setup.sh index 425ebcf..e6e9434 100755 --- a/setup.sh +++ b/setup.sh @@ -36,6 +36,9 @@ if [ ! -d /var/www/package ]; then create_link fi +# Apache gets grumpy about PID files pre-existing +rm -f /var/run/apache2/apache2.pid + echo "[$(date)] Starting apache server" service apache2 start