1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-12-01 22:41:53 +02:00

Simplify the health-check

This commit is contained in:
Florent Daigniere
2023-04-21 17:36:24 +02:00
parent e6b9285f86
commit 5d93ae205e
3 changed files with 2 additions and 12 deletions

View File

@@ -4,10 +4,7 @@ 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)$',
r'waitpid\(\) returned unknown PID \d+$',
])
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)$')
# Check if a stale pid file exists
if os.path.exists("/var/run/nginx.pid"):