Align log messages across all service startup scripts (horizon, nightwatch-agent, scheduler-worker) in both development and production environments to use a consistent " INFO " prefix format.
11 lines
253 B
Bash
11 lines
253 B
Bash
#!/bin/sh
|
|
|
|
cd /var/www/html
|
|
|
|
if grep -qE '^SCHEDULER_ENABLED=false' .env 2>/dev/null; then
|
|
echo " INFO Scheduler is disabled, sleeping."
|
|
exec sleep infinity
|
|
fi
|
|
|
|
echo " INFO Scheduler is enabled, starting..."
|
|
exec php artisan schedule:work
|