Created
December 11, 2023 07:51
-
-
Save arif98741/69f617874744aaf57c53a19e5d8a59c3 to your computer and use it in GitHub Desktop.
Revisions
-
arif98741 created this gist
Dec 11, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ sudo apt-get install supervisor sudo systemctl stop supervisor sudo systemctl start supervisor sudo systemctl status supervisor sudo nano /etc/supervisor/conf.d/laravel-queue-project1.conf [program:laravel-queue-project1] process_name=%(program_name)s_%(process_num)02d command=php /var/www/project1/artisan queue:work --queue=default --sleep=3 --tries=3 --max-time=3600 autostart=true autorestart=true stopasgroup=true killasgroup=true user=www-data numprocs=8 redirect_stderr=true stdout_logfile=/var/log/laravel-queue.log sudo supervisorctl reread sudo supervisorctl update sudo supervisorctl start laravel-queue-project1:*