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:
#!/bin/bash # 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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/mailman-users ------------------------------------------------------ Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users