From 3e5a6029abf13bef4ea5f43cf21f753b828d93c3 Mon Sep 17 00:00:00 2001 From: Victorien Plancke Date: Thu, 4 Jan 2018 23:57:33 +0100 Subject: [PATCH] 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 --- php-worker/supervisord.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/php-worker/supervisord.conf b/php-worker/supervisord.conf index 90bbdac..d0a2ece 100644 --- a/php-worker/supervisord.conf +++ b/php-worker/supervisord.conf @@ -1,5 +1,11 @@ [supervisord] 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] process_name=%(program_name)s_%(process_num)02d command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon