Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Supervisor unrecognized service issue after install

If I install supervisor from apt-get I get version 3.0b2-1 and if I run sudo service supervisor status I get is running (older beta version working fine)

A directory at /etc/supervisor is created with supervisord.conf file inside and empty dir conf.d

However, trying to install latest version (3.1.1) with pip or easy_install and running service supervisor status I get supervisor: unrecognized service (latest version not working)

No configuration files are created at /etc so I did echo_supervisord_conf > /etc/supervisord.conf as said at docs.

I can't run service start/stop/restart/status... And I don't know if supervisor will actually work. Any ideas here?

Note: I'm using an Ubuntu 14.04 x64 machine.

like image 693
Caumons Avatar asked Aug 12 '14 12:08

Caumons


People also ask

How do I restart my supervisor service?

Start / Stop a Service To start a non-running service or stop a running one, use supervisorctl start my-daemon and supervisorctl stop my-daemon . To restart a service, you can also use supervisorctl restart my-daemon .

How do I know if supervisor is installed?

The supervisor service runs automatically after installation. You can check its status: sudo systemctl status supervisor.

How can the supervisor process be stopped?

So to actually stop them Supervisor has to be mean and kill every process that might have spawned. One possible reason is that they expect a different kill signal.


2 Answers

What I finally did is to actually work with the apt-get installation. No issues found with it.

like image 88
Caumons Avatar answered Oct 19 '22 21:10

Caumons


I would recommend going the route of adding an upstart service as shown here.

Once you've created the upstart conf file, you can then just do:

sudo start supervisord
like image 2
frederix Avatar answered Oct 19 '22 21:10

frederix