Parcourir la source

Fixed apache pid already running error when container was restarted (#20)

GwangGeun il y a 6 ans
Parent
commit
4f11ae9eb8
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      apache/run

+ 3 - 0
apache/run

@@ -2,4 +2,7 @@
 
 # From https://github.com/smebberson/docker-alpine/tree/master/alpine-apache
 
+# avoid 'already pid is running' error
+rm -f /run/apache2/httpd.pid
+
 exec /usr/sbin/apachectl -DFOREGROUND;