From 87bc7765efdc5a6e06e67910ed17451fdc45ece9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=BCnther?= Date: Thu, 3 Jan 2019 00:33:27 +0100 Subject: [PATCH] fix startup of coreimage containers after unclean shutdown --- core/start-service.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/start-service.sh b/core/start-service.sh index 384d9a5..64255f7 100755 --- a/core/start-service.sh +++ b/core/start-service.sh @@ -8,6 +8,9 @@ if [ ! -e /kopano/$SERVICE_TO_START.py ] then echo "Invalid service specified: $SERVICE_TO_START" | ts exit 1 +else + #ensure removed pid-file on unclean shutdowns and mounted volumes + rm -f /var/run/kopano/$SERVICE_TO_START.pid fi [ ! -z "$ADDITIONAL_KOPANO_PACKAGES" ] && apt update