Stop service when app can't be started

uWSGI service can be showed as running even if it's unable to
find wsgi file. It will generate error like [1] and continue re-trying
To prevent this from happening, we should exit when app error occur

[1] `no python application found, check your startup logs for errors`

Change-Id: I24566df66caa651926b13891f00220bd8795bdb3
This commit is contained in:
Dmitriy Rabotyagov 2020-01-02 19:27:02 +02:00
parent a6aad9aefa
commit 20484b7ec0
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ disable-logging = true
http-auto-chunked = true
http-raw-body = true
socket-timeout = 10
need-app = true
# Avoid filling up the logs with health check requests from haproxy.
route-user-agent = ^osa-haproxy-healthcheck$ donotlog: