From 60b3fceea6eaf3b0c2da151744facfd0f4946dae Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 7 Aug 2020 22:41:09 -0700 Subject: [PATCH] reset-failed state of tasks during startup --- src/scripts/stoptask.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/stoptask.sh b/src/scripts/stoptask.sh index 867a0ab3b..c4efecfc8 100755 --- a/src/scripts/stoptask.sh +++ b/src/scripts/stoptask.sh @@ -22,6 +22,7 @@ task_id="$1" if [[ "${task_id}" == "all" ]]; then systemctl list-units --full --no-legend cloudron-task-* # just to show who was running systemctl kill --signal=SIGTERM cloudron-task-* || true + systemctl reset-failed cloudron-task-* || true else readonly service_name="cloudron-task-${task_id}" systemctl kill --signal=SIGTERM "${service_name}" || true