Commit b034c093 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1060 - multiple execution of Fetchmail / Getmail causes high load

parent cdd80be5
......@@ -8,6 +8,12 @@ rcfiles="$rcfiles -r $file"
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
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment