Skip to content

Automatically restart on failure

Adam requested to merge adam949/flask-nginx-rtmp-manager:self-healing into nightly

Description

Restarts the gunicorn services automatically if they fail.

Motivation and Context

If the gunicorn services ever fail, the current solution is to have an administrator remote into the server and restart each of the gunicorn services. This change will automate that process so the service will come back online automatically without nay user (administrator) interaction.

How Has This Been Tested?

Implemented the change on my own server, killed the PID of osp-worker@5005.service, checked the status of the service with systemctl and saw it running (stated 1 second ago).

Tested on Debian 11, x86_64

Changes should not have any unexpected side effects.

Screenshots (if appropriate):

n/a

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • Merge Request Follows the Merge Request Guidelines
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Merge request reports