Add health-check

This commit is contained in:
Florent Daigniere
2023-04-21 08:59:42 +02:00
parent cf0b440b2a
commit 4b02b2bd65
3 changed files with 19 additions and 7 deletions

View File

@@ -4,7 +4,10 @@ import os
import subprocess
from socrate import system
system.set_env(log_filters=r'could not be resolved \(\d\: [^\)]+\) while in resolving client address, client\: [^,]+, server: [^\:]+\:(25,110,143,587,465,993,995)$')
system.set_env(log_filters=[
r'could not be resolved \(\d\: [^\)]+\) while in resolving client address, client\: [^,]+, server: [^\:]+\:(25,110,143,587,465,993,995)$',
r'waitpid\(\) returned unknown PID \d+$',
])
# Check if a stale pid file exists
if os.path.exists("/var/run/nginx.pid"):