Skip to main content

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 really 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

Changelog

  • 0.1.1

    • Commands are run in parallel (Thanks, Honza Kral)

  • 0.1.0

    • Simple support for mstop, mstart, mrestart

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supervisor-wildcards-0.1.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file supervisor-wildcards-0.1.1.tar.gz.

File metadata

File hashes

Hashes for supervisor-wildcards-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5b60f7352d112b5d38a44b79bdafbedfc66ad2e6a9f4fdc4b4ddf8a383eb7ef7
MD5 9b65ef466fa686a03ce25ade0d1fda5c
BLAKE2b-256 f2bace59cdb69340622b0b3304d2ce6cda30c3789f860448ab99906c3e27bf0c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page