Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Implemenents start/stop/restart commands with wildcard support for Supervisor
Python
Branch: master
Pull request Compare This branch is 16 commits behind aleszoulek:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
supervisorwildcards
README.rst
setup.py

README.rst

Supervisor wildcards

Description

Adds mstop, mstart and mrestart commands to Supervisor. Those commands works exacatly the same way as stop, start and restart respectively, except they support process name wildcarding.

In some usecases you can use groups support in Supervisor, but it doesn't allow you to have one process in multiple groups. That's when wildcarding can be realy useful.

Example

supervisor> status
celery-a                                RUNNING    pid 15085, uptime 0:00:11
celery-b                                RUNNING    pid 15086, uptime 0:00:12
gunicorn-a                              RUNNING    pid 14151, uptime 0:05:18
gunicorn-b                              RUNNING    pid 14237, uptime 0:04:45
supervisor> mstop *-a
celery-a: stopped
gunicorn-a: stopped
supervisor>

Installation

pip install supervisor-wildcards

And then add into your supervisor.conf:

[ctlplugin:wildcards]
supervisor.ctl_factory = supervisorwildcards.controllerplugin:make_wildcards_controllerplugin
Something went wrong with that request. Please try again.