A collection of scripts to manage a Supervisor instance on a remote VPS (virtual private server) on Linode.
Supervisor is a client/server system for managing multiple processes on a single UNIX environment under one system.
In my workflow, I manage multiple python apps that are all self contained in their own virtual environment (venv). Supervisor allows you to start processes in their own environments.
- Create and start a Python Virtual Environment
python3 -m venv venv. venv/bin/activate - Install Supervisor using
pip install supervisor.requirements.txtis for version trackingpip install -r requirements.txt. - Launch Supervisor with
venv/bin/supervisord -c supervisord.conf - Manage Supervisor using
venv/bin/supervisorctl
- It maybe possible to launch Supervisor without
venv
- Running Supervisor on startup (systemd/linux service)
Author: Duc Cong Duong