Rename to box-task

this way we can do systemctl stop box*
This commit is contained in:
Girish Ramakrishnan
2020-08-09 07:07:19 -07:00
parent da98649667
commit e85f0a4f52
2 changed files with 6 additions and 6 deletions

View File

@@ -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