Open-Building-Management / emoncms

emoncms home-assistant addon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apache pid

alexandrecuer opened this issue · comments

when crashing, apache2 can have problem with pid file already existing

a solution could be to change the apache run execlineb script for this one

#!/command/execlineb -P
/command/foreground { rm -f /var/run/apache2/httpd.pid } /usr/sbin/httpd -D FOREGROUND

https://forums.docker.com/t/httpd-already-running/33397

and

https://github.com/docker-library/httpd/blob/master/2.4/alpine/httpd-foreground