I want my laravel queue:work to keep running on a shared hosting, this is a shared hosting (am not on a VPS) I can\'t install anything because almost all on
One more solution (I solved same problem in this way). You can make script like this:
# getting running processes with name "queue:work"
QUEUE_STATUS=$(ps aux | grep "queue:work")
# check is queue:work started, if no, start it
if $( echo $QUEUE_STATUS | grep --quiet 'artisan queue:work')
then
exit;
else
php ~/public_html/artisan queue:work
fi
and run it in CRON. I run every 10 min.