From 36a18e870f1ad4ddc2ea38c06de7b5207d6bf664 Mon Sep 17 00:00:00 2001 From: gitea Date: Sun, 19 May 2024 11:31:23 +0800 Subject: [PATCH] [modify] make a exception for v2raya --- alert/docker_alarm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alert/docker_alarm.sh b/alert/docker_alarm.sh index 16e9f7b..436439c 100644 --- a/alert/docker_alarm.sh +++ b/alert/docker_alarm.sh @@ -3,7 +3,7 @@ > /tmp/docker_alarm.log docker ps -a --format "table {{.Names}}\t{{.Status}}" > /opt/logs/docker_status.log while read line; do - echo $line | grep -q 'Exited' + echo $line | grep -v 'v2raya' | grep -q 'Exited' if [[ $? -eq 0 ]]; then name=`echo $line | awk '{print $1}'` echo "Docker Alarm - $name: Container $name has been off line, please check ASAP." >> /tmp/docker_alarm.log