Update supervisord.conf to enable supervisorctl

Enabling supervisorctl allow us to do, start/stop one service without having to stop the entire container for example. Usefull when we have many php process running.

supervisorctl stop laravel-worker
This commit is contained in:
Victorien Plancke 2018-01-04 23:57:33 +01:00 committed by GitHub
parent 7fc3a9cb7a
commit 3e5a6029ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,11 @@
[supervisord] [supervisord]
nodaemon=true nodaemon=true
[supervisorctl]
[inet_http_server]
port = 127.0.0.1:9001
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:laravel-worker] [program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d process_name=%(program_name)s_%(process_num)02d
command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon