diff --git a/src/scripts/starttask.sh b/src/scripts/starttask.sh index 4c8712b27..acffa70c7 100755 --- a/src/scripts/starttask.sh +++ b/src/scripts/starttask.sh @@ -24,7 +24,7 @@ readonly task_id="$1" readonly logfile="$2" readonly nice="$3" -readonly service_name="cloudron-task-${task_id}" +readonly service_name="box-task-${task_id}" systemctl reset-failed "${service_name}" || true readonly id=$(id -u $SUDO_USER) diff --git a/src/scripts/stoptask.sh b/src/scripts/stoptask.sh index 4fb985b57..c6633c1c6 100755 --- a/src/scripts/stoptask.sh +++ b/src/scripts/stoptask.sh @@ -20,12 +20,12 @@ fi 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 - systemctl stop cloudron-task-* || true # because of remain-after-exit in Ubuntu 16 we have to deactivate the service + systemctl list-units --full --no-legend box-task-* # just to show who was running + systemctl kill --signal=SIGTERM box-task-* || true + systemctl reset-failed box-task-* || true + systemctl stop box-task-* || true # because of remain-after-exit in Ubuntu 16 we have to deactivate the service else - readonly service_name="cloudron-task-${task_id}" + readonly service_name="box-task-${task_id}" systemctl kill --signal=SIGTERM "${service_name}" || true systemctl stop "${service_name}" || true # because of remain-after-exit in Ubuntu 16 we have to deactivate the service fi