Install Supervisor Package with brew install supervisor
or see Installation Guide for any other OS.
Once installed this will create supervisord.ini file in /usr/local/etc which is a config file
Rename this file to supervisord.conf so that we can start supervisor with command
supervisorctl -c /usr/local/etc/supervisord.conf
(by default supervisor creates supervisord.ini which throws error should be conf file)
I have generated 50 processes to execute queued job in laravel application, Ofcourse you can use to trigger any other application interface other than laravel
Now create your own conf file that will start non-daemonized processes for eg. laravel_queue.conf in the directory /usr/local/etc/supervisor.d/
Dont forget to include your conf file in supervisord.conf at last
[include]
files = /usr/local/etc/supervisor.d/*.ini
Now execute command to initialise
supervisorctl -c /usr/local/etc/supervisord.conf
supervisord -c /usr/local/etc/supervisord.conf
Now you can control supervisor task by command supervisorctl
which will show all the running task and different options