I'm running Mailman 2.1.2.

After I sent the message I realized that indeed I might
have a stale lock problem.  So I looked in
/var/lock/mailman and there was about 1000 stale lock files.

Until I can find a better solution, I wrote this small
bash script to manually remove stale lock files, and I
plan to run it from cron every minute.

So far it seems to be helping the problem.  Maybe it will
help others out there...

----- checklocks script ----
#!/bin/sh

HOST=`hostname`

cd /var/lock/mailman

for x in `ls *.lock.$HOST.*`; do
  PROCID=`echo $x | awk -F "." '{print $6}'`
  if [ ! -d /proc/$PROCID ]; then
    echo "deleting $x for $PROCID"
    rm -fv $x
  else
    echo "$x is a good lock for $PROCID"
  fi
done

for x in `ls *.lock`; do
  if [ ! -f `cat $x` ]; then
    echo "$x is NOT valid"
    rm -fv $x
  else
    echo "$x is valid"
  fi
done
-----------------------------

-- 
My grandmother started walking five miles a day when she   
was 60. She's 97 now & we don't know where she is!

www.GCFL.net (The Good, Clean Funnies List): Good, clean
funnies five times a week, no ads, for f_r_e_e!

------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to