tbrehm
2010-02-25 b034c0933c770f2d36c258747aa3c3c0ad2f519e
Fixed: FS#1060 - multiple execution of Fetchmail / Getmail causes high load
1 files modified
10 ■■■■ changed files
server/scripts/run-getmail.sh 10 ●●●● patch | view | raw | blame | history
server/scripts/run-getmail.sh
@@ -8,6 +8,12 @@
fi
done
#echo $rcfiles
if [ "$rcfiles" != "" ]; then
exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles
if [ -f /tmp/.getmail_lock ]; then
  echo 'Found getmail lock file /tmp/.getmail_lock, we quit here.'
else
  touch /tmp/.getmail_lock
  if [ "$rcfiles" != "" ]; then
    exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles
  fi
  rm -f /tmp/.getmail_lock
fi