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