[Mailman-Users] qrunner locks are not always removed

Jon Carnes jonc at haht.com
Tue Nov 20 21:16:53 CET 2001

The lock files all end with the process ID.  Which makes it easy to stop the
processes and remove the locks.  Here's a small script that does just that:

# Kill current Mailman processes and then remove lock files
# Jeff B is running a misconfigured browser and locks up the admin interface
# on a daily basis...  Jon C
for i in `ls /home/mailman/locks |cut -f7 -d. `; do kill $i; done
rm -f /home/mailman/locks/*

I'm fairly certain that I *don't* want qrunner to try and guess whether a
process is dead or simply waiting for a response.

Jon Carnes
----- Original Message -----
From: "Dan Wilder" <dan at ssc.com>
To: <mailman-users at python.org>
Sent: Tuesday, November 20, 2001 2:27 PM
Subject: Re: [Mailman-Users] qrunner locks are not always removed

> On Tue, Nov 20, 2001 at 10:49:08AM -0800, Harold Paulson wrote:
> >
> > >Nov 15 21:51:02 2001 (5617) Could not acquire qrunner lock
> >
> > This is probably normal behavior.  qrunner starts up from cron once a
> > minute.  If there is a lock file laying around, it knows that an
> > older qrunner is still active, and shuts itself down.
> >
> > That being said, this message worried me too, and it's not the first
> > time I have seen this question asked.  Maybe we could get a
> > friendlier log message here?
> >
> > Also, I recall older versions of Mailman having locking problems,
> > that ended up with a lot of stale locks laying around.
> Any chance the lockfile might record, say, a PID, or some other
> identifying information which would allow a new invocation of
> qrunner to determine whether the lock is stale, and simply remove
> it if so?
> If memory (forgettery?) serves, that's what UUCP (do I betray my age?)
> did.
> --
> -----------------------------------------------------------------
>  Dan Wilder <dan at ssc.com>   Technical Manager & Editor
>  SSC, Inc. P.O. Box 55549   Phone:  206-782-8808
>  Seattle, WA  98155-0549    URL http://embedded.linuxjournal.com/
> -----------------------------------------------------------------
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users

More information about the Mailman-Users mailing list