From 8553fffffefb16e64d555c4623838edd3fceda6e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 11 Apr 2024 15:07:41 +0200 Subject: [PATCH] Update startup commands for Horizon and Scheduler Worker services --- docker/prod-ssu/etc/s6-overlay/s6-rc.d/horizon/run | 5 ++++- docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/horizon/run b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/horizon/run index 012efc348..87471097e 100644 --- a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/horizon/run +++ b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/horizon/run @@ -1,2 +1,5 @@ #!/command/execlineb -P -su - webuser -c "php /var/www/html/artisan horizon" +foreground { + s6-sleep 5 + su - webuser -c "php /var/www/html/artisan start:horizon" +} diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run index 8021572af..87ca0cae1 100644 --- a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run +++ b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run @@ -1,2 +1,5 @@ #!/command/execlineb -P -su - webuser -c "php /var/www/html/artisan schedule:work" +foreground { + s6-sleep 5 + su - webuser -c "php /var/www/html/artisan start:scheduler" +}