X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2FannounceEmail;h=f0fbdd98e9436c4af52e2a1b5a0e00a2411d71a7;hb=fbbb29c20458b289f2e66825684a21b5143833a4;hp=deab422a346cbfa547d856b437125e1070587cea;hpb=f3e0cdceb40c69dc13b1edf6d9d2af3bd38798c1;p=clearscm.git 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 ;;