Implemenents serialrestart command support for Supervisor.
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
NoneRelease 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
Hashes for supervisor-serialrestart-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e98704ce2bf10cf4755cf38cf61c7cebbb11f486c40273bd9bfe09a3ec887307 |
|
MD5 | b31227bc9420d3e01c37f33260a041e2 |
|
BLAKE2b-256 | 54b15be7237724775cbd0cf0382854a7c4dc01457bb021479755052649fac55e |