From 70db9a2c552aa2d7f248091f3a86614f2e3aaaab Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 29 Mar 2022 18:41:48 +0300 Subject: [PATCH] Nothing wrong with an empty message body --- notify-ok.sh | 2 +- start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notify-ok.sh b/notify-ok.sh index b265cb6..58624e4 100755 --- a/notify-ok.sh +++ b/notify-ok.sh @@ -1,4 +1,4 @@ #!/bin/sh -e . "$SGMONDIR"/rc -echo OK | mailx -s "Succeeded $SGMONSRV" "$NOTIFY_EMAIL" +echo | mailx -s "Succeeded $SGMONSRV" "$NOTIFY_EMAIL" diff --git a/start.sh b/start.sh index 7d4baa6..d9c488e 100755 --- a/start.sh +++ b/start.sh @@ -2,7 +2,7 @@ stop() { trap - HUP PIPE INT QUIT TERM EXIT - echo ... | mailx -s "Stopping" "$NOTIFY_EMAIL" + echo | mailx -s "Stopping" "$NOTIFY_EMAIL" for probe in $probes ; do [ -s $probe/state/pid ] || continue echo killing ${probe} -- 2.44.0