Skip to main content

Adds serialrestart command to Supervisor.

Project description

Supervisor serialrestart

https://badge.fury.io/py/supervisor-serialrestart.png https://pypip.in/d/supervisor-serialrestart/badge.png

Adds serialrestart command to [Supervisor](http://supervisord.org/). This command works simmilar to restart but if you have multiple services, it sometimes is preferable to restart them one after another to minimize downtime.

It even supports wildcards.

Usage

supervisor> status
baz:bar                          RUNNING
baz:foo                          RUNNING
one                              RUNNING

supervisor> serialrestart all
baz:bar: stopped
baz:bar: started
baz:foo: stopped
baz:foo: started
one: stopped
one: started

supervisor> serialrestart baz:*
baz:bar: stopped
baz:bar: started
baz:foo: stopped
baz:foo: started

$supervisor> serialrestart baz:b*
baz:bar: stopped
baz:bar: started

Installation

At the command line:

$ easy_install supervisor-serialrestart

Or:

$ pip install supervisor-serialrestart

And then add into your supervisor.conf:

[ctlplugin:serialrestart]
supervisor.ctl_factory = supervisorserialrestart.controllerplugin:make_serialrestart_controllerplugin

History

0.1.1 (2013-10-29)

  • just fixxed documentation/project structure

0.1.0 (2013-10-16)

  • First release on PyPI.

History

0.1.1 (2013-10-29)

  • just fixed documentation/project structure

0.1.0 (2013-10-16)

  • First release on PyPI.

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-serialrestart-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for supervisor-serialrestart-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c5e06caae06ff9ceb8fe200d9d82db2c755a5c182f789733be5f2187f78e4a15
MD5 014787ffeca33a94f783a8ffb60813af
BLAKE2b-256 8b9f6d49a32a2585b9d303eb9cc31a323c847b646bd8bd650528aeb9e46c9f8d

See more details on using hashes here.

Supported by

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