Skip to content

Commit 3e5a602

Browse files
authored
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
1 parent 7fc3a9c commit 3e5a602

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

php-worker/supervisord.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
[supervisord]
22
nodaemon=true
3+
[supervisorctl]
4+
[inet_http_server]
5+
port = 127.0.0.1:9001
6+
[rpcinterface:supervisor]
7+
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
8+
39
[program:laravel-worker]
410
process_name=%(program_name)s_%(process_num)02d
511
command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon

0 commit comments

Comments
 (0)