Skip to main content

Implemenents serialrestart command support for Supervisor.

None

Project description

Description

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.

Example

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

pip install supervisor-serialrestart

And then add into your supervisor.conf:

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

Changelog

  • 0.1.0
    • Simple support for serialrestart

Project details

None

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.0.tar.gz (2.4 kB view hashes)

Uploaded Source

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