Remove httpd pid file before starting as it may create an infinite loop with errors. (#13)

This commit is contained in:
Christos Manios 2020-02-29 12:34:13 +02:00
parent 1ae7dba91c
commit 0a57554131

View file

@ -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