I'm trying to restart supervisor on my server but I can't seem to get it going. It seems the process is already started but I get a connection error if I try to access the control panel:
I then try to restart the process but that also doesn't seem to work.
[root@server]# service supervisorctl restart
Redirecting to /bin/systemctl restart supervisorctl.service
Failed to restart supervisorctl.service: Unit supervisorctl.service failed to load: No such file or directory.
[root@server]# service supervisor restart
Redirecting to /bin/systemctl restart supervisor.service
Failed to restart supervisor.service: Unit supervisor.service failed to load: No such file or directory.
[root@server]# service supervisord restart
Redirecting to /bin/systemctl restart supervisord.service
Failed to restart supervisord.service: Unit supervisord.service failed to load: No such file or directory.
Anyone have any idea what this could be? Server is CentOS 6.5
@ohffs Supervisor is not listed in the output, which I guess means that the service is not known. Does this mean the installation wasn't done correctly? I inherited this setup from a previous developer, so I have no knowledge of what he has done with it or why.
@ohffs The first command doesn't yield any output at all, but that doesn't surprise me. I knew from the start that the setup wasn't perfect. As an example: the supervisor.conffile is not stored in /etc/supervisor, as you would think, but instead can be found in the /etc directory itself. Additionally, the queues themselves are defined inside the config file instead of using a directory with additional files, as is common.
Sounds like they maybe installed it from source? Or maybe copied it across from another box - fun! ;-) I'm kind of wary to say just install the CentOS version with yum as neither of us knows why it was done that way (if there was any reason at all). I don't think it'd cause you an issue seeing as, well, it isn't running properly anyway ;-) If you're machine has the EPEL repo in /etc/yum.repos.d/ you can just do
basically means that the service was not started correctly before accessing the control panel. So what you need to do to fix that, is (surprise surprise) start supervisor:
sudo service supervisor restart
After that, you should be able to access the control panel without issue