Currenty I install supervisord system-wide on Ubuntu with apt-get install supervisor
. All my projects are inside virtualenvs, so system-wide Python is not really used for anything.
Is it possible to install supervisor inside my virtualenvs? Can I run multiple instances?
The per-program configuration files for Supervisor programs are located in the /etc/supervisor/conf. d directory, typically running one program per file and ending in . conf.
In Linux, Supervisor is a client/server system that allows its users to monitor and control a number of processes on Linux or UNIX-like operating systems. Whenever we want, Processes can be stopped and started as a unit. It starts its sub-processes via fork/exec.
Install Supervisor with sudo apt-get install supervisor in Unix or brew install supervisor in Mac OSX. Ensure it's started with sudo service supervisor restart in Unix or brew services start supervisor in Mac OSX. In Unix in /etc/supervisord/conf. d/ create a .
Run the Install. Download SUPERVISOR according to your server version here. Unzip and run the downloaded setup.exe file as an Administrator. Choose your installation language on this screen.
Yes. You can first setup a virtualenv
and then install supervisor use pip
.
virtualenv env
cd env
./bin/pip install supervisor
create configuration file:
echo_supervisord_conf > /path_to_configuration_file/supervisord.conf
You can run multiple instances, just use different port supervisord listen on in configuration file:
port=127.0.0.1:9001
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With