On 12/15/2013 04:12 PM, Steven Mading wrote: > This pattern adds the cost of extra lag to the response, but > this buys you a lower footprint the rest of the time when it's idle, and it > also buys you the ability to not have to constantly monitor to make sure > that a process that hasn't had anything to do for a long time is still > running. > > It would be wonderful if I could do a thing like that with qrunner. > > Is there an option that I can turn on somewhere that does this and I just > can't find it in the documentation?
No. > If not I'll cobble together a small script that will look at Mailman's > pending queue directory and when it starts having files in it, the script > will run "/etc/init.d/mailman start", and when it has no files in it, it > will run "/etc/init.d/mailman stop". > > It's a crude solution so I'd rather not use it if there's something more > elegant built in to Mailman that I didn't notice. Inelegant as it is, that's probably the best you can do. You might consider treating separate queues separately. I.e., when there's something in qfiles/in (/var/spool/mailman/in on RedHat) run bin/qrunner --runner=IncomingRunner:0:1 and then when the queue is empty send that process a SIGTERM and similarly for the out queue and OutgoingRunner, the archive queue and ArchRunner, and the other 5 runners. -- Mark Sapiro <[email protected]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list [email protected] https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
