From 8697fc3907df261722a98654fd1e84609f2266e7 Mon Sep 17 00:00:00 2001 From: Uggla Date: Mon, 18 Jan 2016 10:58:26 +0100 Subject: [PATCH] Fix dmtf container - Remove apache pid file. So it allows to restart the mockup after a brutal shutdown of the container. --- dmtf/redfish-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dmtf/redfish-setup.sh b/dmtf/redfish-setup.sh index 967be07..63a1786 100644 --- a/dmtf/redfish-setup.sh +++ b/dmtf/redfish-setup.sh @@ -1,6 +1,7 @@ #!/bin/bash function start_apache { + [ -f "/run/apache2/apache2.pid" ] && rm "/run/apache2/apache2.pid" echo "Launching apache2 in foreground with /usr/sbin/apache2ctl -DFOREGROUND -k start" /usr/sbin/apache2ctl -DFOREGROUND -k start }