From 6d7a6ccca97da76244528413adda2e939f05babd Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Tue, 15 Jun 2021 11:38:24 -0700 Subject: [PATCH] Added secondary kill to announceEmail --- .gitignore | 1 + bin/announceEmail | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7c18c6b..bf0ac9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .pydevproject +/cadence/ diff --git a/bin/announceEmail b/bin/announceEmail index deab422..f0fbdd9 100755 --- a/bin/announceEmail +++ b/bin/announceEmail @@ -3,9 +3,13 @@ case $1 in post) # If we send the USR2 signal before the network comes back up then # announceEmail.pl will die trying to re-establish its connection to the - # IMAP server. So instead we use this cheap method of sleeping for a minute + # IMAP server. So instead we use this cheap method of sleeping for a while # as the network should be back by then. A better method would be to poll # looking for the network to come back up but that's tricker to implement. + # + # Seems like one kill is not enough. Try 2 - spaced a minute apart + sleep 60 + killall -USR2 announceEmail.pl sleep 60 killall -USR2 announceEmail.pl ;; -- 2.17.1