getmail .lockfile

Discussion in 'General' started by commentator, May 10, 2013.

  1. commentator

    commentator Member

    looks like once/twice a week the .lockfile is not removed so it stops getting mail.

    It's not on a default day/time so it's a bit hard to find why. Any suggestions to debug/fix this?

    Running Debian Sqeeuze
     
  2. commentator

    commentator Member

    any one?

    Update: Problem also exists on a Debian Jessie install
     
  3. commentator

    commentator Member

    ah found why it is there. This occurs when there is an interruption during getmail run.

    @till Is it possible to automatically remove the lockfile if it is there +30 minutes?
     
  4. commentator

    commentator Member

    Problem still exists. Also on a clean Jessie install with latest isp config it doesn't remove the lockfile and it stops getting mail.
     
  5. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Getmail is invoked by /usr/local/bin/run-getmail.sh. You can change this file from
    Code:
    if [ -f /tmp/.getmail_lock ]; then
    to
    Code:
    if test `find /tmp/.getmail_lock -mmin -10`; then
    to ignore lockfiles older than 10 minutes
     

Share This Page