I'm not a shell programmer. So maybe my ieda is wrong.
Sometimes I get /tmp/getmail_lock not removed so the ispconfig getmail.sh script exits with teh message:
Found getmail lock file /tmp/.getmail_lock, we quit here.
and /usr/bin/getmail -v -g /etc/getmail $rcfiles
is not executed.
After this error:
Jun 5 12:00:41 mail getmail: getmailOperationError error (error resolving name mail.mydomain.com during connect ([Errno -2] Name or service not known))
due the network was down I had getmail_lock not removed.
I can't undestrand why it appens, because it should be removed after
if [ "$rcfiles" != "" ]; then
/usr/bin/getmail -v -g /etc/getmail $rcfiles
Has someone idea how to address this?