Skip to main content

Automatic service restart after updates

Project description

restarter

restarter is a little utility to restart services if referenced objects like executables or shared libraries have changed on disk. The aim 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.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

restarter-0.3.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file restarter-0.3.tar.gz.

File metadata

  • Download URL: restarter-0.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for restarter-0.3.tar.gz
Algorithm Hash digest
SHA256 73ab457d4cd4be5c915627263bbd04b4f6e32d61ee1bef89d400cda2d3d2426d
MD5 bdb2f7fcd64ac6a3c193febfd341cfd2
BLAKE2b-256 c979d7b05e532398e8953fe3491be7bb389a611444eeccbb78ae9e5eaf53e8ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page