; Supervisor program: Laravel scheduler for Shalom CareSol (OPTIONAL) ; --------------------------------------------------------------------------- ; Runs the scheduler continuously (invokes `schedule:run` every minute), which ; fires the daily SMS jobs (sms:send-birthday, sms:send-appointment-reminders ; at 06:30 Africa/Lagos) and the other scheduled tasks. ; ; NOTE: The standard production approach is a single system cron entry instead ; of this program (see deploy/crontab.txt). Use ONE of the two, not both. ; This Supervisor option is handy on hosts where you cannot edit crontab. ; ; Install: ; sudo cp deploy/supervisor/shalom-scheduler.conf /etc/supervisor/conf.d/ ; sudo supervisorctl reread && sudo supervisorctl update ; --------------------------------------------------------------------------- [program:shalom-scheduler] process_name=%(program_name)s command=/usr/bin/php8.4 /var/www/apps/shalom-api/artisan schedule:work directory=/var/www/apps/shalom-api autostart=true autorestart=true user=www-data numprocs=1 redirect_stderr=true stdout_logfile=/var/www/apps/shalom-api/storage/logs/scheduler.log stdout_logfile_maxbytes=50MB stdout_logfile_backups=5