Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop the individual programs that are specified in supervisord.conf file? [closed]

I want to manage few process using supervisor.I have made the changes in the supervisord.conf file.I want to stop a few programs later

I tried using "supervisorctl stop program_name" command but I get the following

Sorry, supervisord responded but did not recognize the supervisor namespace commands that supervisorctl uses to control it. Please check that the [rpcinterface:supervisor] section is enabled in the configuration file (see sample.conf).

Can somebody guide me? Thanks in advance

like image 648
Aravind Avatar asked Sep 24 '15 11:09

Aravind


1 Answers

Add this to your /etc/supervisord.conf:

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

And restart supervisord:

sudo /etc/init.d/supervisord restart
like image 105
nicktacular Avatar answered Jan 02 '23 20:01

nicktacular