From 74a2d466cb29ad7440d2975667c1e24d0e70f019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 26 Aug 2024 12:36:04 +0200 Subject: [PATCH] fix(start): remove stale supervisor configuration files on start Repeated start might have existing files around. Fixes #2579 --- start | 2 ++ 1 file changed, 2 insertions(+) diff --git a/start b/start index 2ae8cf67c..7bffa0be4 100755 --- a/start +++ b/start @@ -201,6 +201,8 @@ if [ "$1" = "runserver" ] ; then # Select which services to run SUPERVISOR_CONF=/run/supervisor.conf.d/ mkdir -p "$SUPERVISOR_CONF" + # Remove possible stale files from previous start + rm -f "$SUPERVISOR_CONF/*" if [ -n "$WEBLATE_SERVICE" ] ; then if [ "$WEBLATE_SERVICE" != "celery-beat" ] ; then DO_MIGRATE=0