From 9b11a42d11e8d89317e4728f4c97afe13820b344 Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 14 Sep 2025 02:28:53 +0200 Subject: [PATCH] [pgrep, python] --- healthcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/healthcheck.py b/healthcheck.py index 5ffd15b..16ae63d 100755 --- a/healthcheck.py +++ b/healthcheck.py @@ -7,9 +7,9 @@ import os def check_process(): """Vérifie si le processus Python principal est en cours d'exécution""" try: - # Vérifier si le processus run-web.py est actif + # Vérifier si un processus python est actif result = subprocess.run( - ["pgrep", "-f", "run-web.py"], + ["pgrep", "python"], capture_output=True, text=True )