From: Sergey Matveev Date: Tue, 29 Mar 2022 15:41:48 +0000 (+0300) Subject: Nothing wrong with an empty message body X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=70db9a2c552aa2d7f248091f3a86614f2e3aaaab;p=sgmon.git Nothing wrong with an empty message body --- 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}