Implemenents start/stop/restart commands with wildcard support for Supervisor
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file supervisor-wildcards-0.1.0.tar.gz
.
File metadata
- Download URL: supervisor-wildcards-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c058bf05337b4f5e540ce8f46675d50d38df3b5759f4c664c8664eb2950bee3 |
|
MD5 | ff02a825e1c4b2ccd894549388aef5c2 |
|
BLAKE2b-256 | 749ea055f1669218a905c56911d0a548b64833e01e01560886bf552a7276b259 |