projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated announceEmail.pl
[clearscm.git]
/
bin
/
announceEmail
diff --git
a/bin/announceEmail
b/bin/announceEmail
index
deab422
..
d992d89
100755
(executable)
--- a/
bin/announceEmail
+++ b/
bin/announceEmail
@@
-3,9
+3,14
@@
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
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
minut
e
+ # IMAP server. So instead we use this cheap method of sleeping for a
whil
e
# 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.
# 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
+ /usr/local/bin/setsound.sh 35
+ sleep 60
+ killall -USR2 announceEmail.pl
sleep 60
killall -USR2 announceEmail.pl
;;
sleep 60
killall -USR2 announceEmail.pl
;;