From 0a57554131ae92f4991bac330c6eb6e2190ae28b Mon Sep 17 00:00:00 2001 From: Christos Manios Date: Sat, 29 Feb 2020 12:34:13 +0200 Subject: [PATCH] Remove httpd pid file before starting as it may create an infinite loop with errors. (#13) --- overlay/etc/sv/apache/run | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/overlay/etc/sv/apache/run b/overlay/etc/sv/apache/run index d120b92..4a62b5a 100755 --- a/overlay/etc/sv/apache/run +++ b/overlay/etc/sv/apache/run @@ -1,4 +1,11 @@ #!/bin/sh + +set -eu + +echo -n "Removing Apache HTTPD PID file before starting it ..." +(rm -f /var/run/apache2/httpd.pid || true) +echo "OK" + . /usr/sbin/envvars # TODO Check about cache