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:
parent
1173ef79a1
commit
a5162ad6d7
@ -31,6 +31,11 @@ function start () {
|
|||||||
source /etc/apache2/envvars
|
source /etc/apache2/envvars
|
||||||
fi
|
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
|
# Start Apache2
|
||||||
exec apache2 -DFOREGROUND
|
exec apache2 -DFOREGROUND
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user