Просмотр исходного кода

Merge pull request #614 from bt90/patch-4

Start apache with exec
sstidl 2 лет назад
Родитель
Сommit
8713facba5
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      Dockerfile
  2. 1 1
      docker/entrypoint.sh

+ 3 - 0
Dockerfile

@@ -38,6 +38,9 @@ ENV ENABLE_ID_OBFUSCATION=false
 ENV REDACT_IP_ADDRESSES=false
 ENV WEBPORT=80
 
+# https://httpd.apache.org/docs/2.4/stopping.html#gracefulstop
+STOPSIGNAL SIGWINCH
+
 # Final touches
 EXPOSE 80
 CMD ["bash", "/entrypoint.sh"]

+ 1 - 1
docker/entrypoint.sh

@@ -88,4 +88,4 @@ fi
 echo "Done, Starting APACHE"
 
 # This runs apache
-apache2-foreground
+exec apache2-foreground