Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to install supervisord inside virtualenv?

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?

like image 986
artvolk Avatar asked Apr 14 '14 13:04

artvolk


People also ask

Where is Supervisord installed?

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.

What is Supervisord in Linux?

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.

How do I install Mac supervisor?

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 .

How do I install Windows supervisor?

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.


1 Answers

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
like image 56
atupal Avatar answered Oct 30 '22 04:10

atupal