Hi,

I would like to use 'supervisorctl status' in order to check whether supervisord is running at all. It would be great if the shell exit status of supervisorctl could be different from zero if e.g. the socket file is not found, or writing to it is not allowed etc.

$ supervisorctl status ; echo $?
unix:///var/run/supervisor.sock no such file
0

That would make shell scripting just a bit easier. It this feasible?

Alternatively: What's the best way to check for a certain supervisord
instance to be running (on a system where there could be more than one instance, e.g. from multiple users)? Without parsing the config file for finding the location of the PID file and then checking whether a process with such a PID is still up?

Any help would be very much appreciated.

Thanks,

Ralph
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to