Automatic service restart after updates
restarter is a little utility to restart services if referenced objects
like executables or shared libraries have changed on disk. The goal is to ensure
that all services run current versions of their software. This is important for
example after security updates.
restarter takes a pidfile as required argument. If the service is stale, that
means there are replaced objects still held in memory,
restarter executes the
restart command passed via the
restarter --restart "/etc/init.d/atd restart" /var/run/atd.pid
There is also the possibility to speficy a “hard restart” command that is executed if the regular restart command fails.
See the output of
restarter --help for a list of all supported options.
Stopped services are gracefully ignored:
restarter does nothing if the pidfile
does not exist or the pid referenced therein is not running. This behaviour can
be modified with the
--fail option. Note that
restarter always fails when
the service was running but did not come up again after restart.
- Add Python 3.3 compatibility.
- Correct source URL.
- Correct packaging issues.
- Ignore trailing lines in pid files as produced by PostgreSQL.
- Packaging issue: version.txt was not included in source distribution.
- Improve error messages.
- Fix double exception on restart failures.
- –exclude/-x specifies mmap’ed objects to ignore.
- Add a little bit of documentation in README.txt.
- Packaging issues.
- Initial public release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|restarter-0.4.4.tar.gz (8.2 kB) Copy SHA256 Checksum SHA256||–||Source||Oct 10, 2014|
|restarter-0.4.4.zip (14.6 kB) Copy SHA256 Checksum SHA256||–||Source||Oct 10, 2014|