Keystone: remove stale pids on startup if present

This PS removes stale pids on startup if present.

Change-Id: Iff136f16f8d15a08e8ce8c51d058b55288f97a2e
Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
Pete Birley 2019-01-29 16:30:36 -06:00
parent 1173ef79a1
commit a5162ad6d7

View File

@ -31,6 +31,11 @@ function start () {
source /etc/apache2/envvars
fi
if [ -f /var/run/apache2/apache2.pid ]; then
# Remove the stale pid for debian/ubuntu images
rm -f /var/run/apache2/apache2.pid
fi
# Start Apache2
exec apache2 -DFOREGROUND
}