From 71ccade4ad43f6174298c4adddb0eb07f849c8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 5 Jun 2024 07:48:05 +0000 Subject: [PATCH] Update k8s-queues.sh, replace with BASH EXIT internal signal --- k8s-queues.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s-queues.sh b/k8s-queues.sh index c1bd473..f3e6c55 100644 --- a/k8s-queues.sh +++ b/k8s-queues.sh @@ -14,7 +14,7 @@ function stopQueues() { # handle graceful shutdown trap "" SIGPIPE -trap stopQueues SIGTERM SIGINT SIGHUP +trap stopQueues EXIT echo "Starting PHP queue workers..." @@ -27,4 +27,4 @@ done #(while $work; do # php artisan queue:work --queue="$(grep -oP 'SQS_QUEUE=\K.*' .env)" --no-interaction # sleep 1 -#done &) \ No newline at end of file +#done &)