To fix the issue that the container started twice
Reference: https://github.com/docker-library/php/issues/187
This commit is contained in:
parent
d8befac846
commit
3860c5b8ed
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
3
setup.sh
3
setup.sh
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue