To fix the issue that the container started twice

Reference: https://github.com/docker-library/php/issues/187
This commit is contained in:
Terry Chen 2017-07-27 11:35:57 +08:00
parent d8befac846
commit 3860c5b8ed
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,9 @@ docker run -d \
## Changelog ## 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 * 2017-04-28: version 0.1.1
* Fix http server doesn't start after the container restarted * Fix http server doesn't start after the container restarted

View File

@ -36,6 +36,9 @@ if [ ! -d /var/www/package ]; then
create_link create_link
fi fi
# Apache gets grumpy about PID files pre-existing
rm -f /var/run/apache2/apache2.pid
echo "[$(date)] Starting apache server" echo "[$(date)] Starting apache server"
service apache2 start service apache2 start