Skip to main content

restarter

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.

Usage

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 –restart option:

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

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.

Release History

0.4.4 (2014-10-10)

  • Add Python 3.3 compatibility.

  • Correct source URL.

  • Correct packaging issues.

0.4.2 (2011-10-25)

  • Ignore trailing lines in pid files as produced by PostgreSQL.

0.4.1 (2011-08-03)

  • Packaging issue: version.txt was not included in source distribution.

0.4 (2011-03-18)

  • Improve error messages.

  • Fix double exception on restart failures.

0.3 (2011-02-16)

  • –exclude/-x specifies mmap’ed objects to ignore.

  • Add a little bit of documentation in README.txt.

0.2 (2011-02-14)

  • Packaging issues.

0.1b1

  • Initial public release.

Release files for restarter 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for restarter 0.4.4
File Size Uploaded
restarter-0.4.4.zip 14.6 kB Details
restarter-0.4.4.tar.gz 8.2 kB Details

Release files / restarter-0.4.4.zip

Download URL restarter-0.4.4.zip
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cb65c64fc6668af3b560241d4d7c0f82b7d6f99b097e3dbbbcc9cea6a1ea9435
BLAKE2b-256 checksum
How to use checksums
ccbbe2f1789241ede11f159d9c6e77de61f55ed65959ff89b3984edb1be8c0ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / restarter-0.4.4.tar.gz

Download URL restarter-0.4.4.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
685c661b96490f3953ca1d078224ec5ae1aa887c91de95f67e8f527742958a72
BLAKE2b-256 checksum
How to use checksums
8e4809b66933394d88cab87d13b2265dfa20936bb0289c83794949377f147f36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.2

1 release file

0.4.1

1 release file

0.4

1 release file

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page