Rename to box-task
this way we can do systemctl stop box*
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user