sig2srv

https://img.shields.io/pypi/v/sig2srv.svg https://img.shields.io/travis/astralblue/sig2srv.svg Documentation Status Updates

sig2srv converts incoming signals into suitable service(8) commands.

Features

  • Turns SIGTERM into “service XYZ stop” commands.
  • Turns SIGHUP into “service XYZ restart” commands.
  • Runs “service XYZ status” periodically and exits with a nonzero status if the service is no longer seen as running, i.e. the status command returns a nonzero status.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.