Skip to content

native2k/supervisor-serialrestart

Repository files navigation

Supervisor serialrestart

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

Adds serialrestart command to Supervisor. 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.


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 fixed documentation/project structure
  • 0.1.0 (2013-10-16)
    • First release on PyPI.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •