⇤ ← Revision 1 as of 2008-05-27 13:26:51
Size: 2615
Comment:
|
← Revision 2 as of 2008-07-31 13:56:40 ⇥
Size: 65
Comment: Page renamed to DOC/4.54 How do I get qrunner to run under daemontools?
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#pragma page-filename DOC/versions/5603470 == 4.54. How do I get qrunner to run under daemontools? == It is possible to run qrunner under daemontools, but you have to do a little setup. Because of the fact that mailmanctl forks, you can't use it to start and stop the qrunner processes under daemontools. The solution is to run /usr/local/mailman/bin/qrunner directly. ========== WARNING ========== WARNING ========== WARNING ========== Please keep in mind that this means you won't be able to use mailmanctl to start and stop Mailman. You will need to use daemontools to manage that part of your job, and the standard solutions recommended by others may not be applicable to you if they depend on using mailmanctl for this function. ========== WARNING ========== WARNING ========== WARNING ========== To start, create a directory called /usr/local/mailman/supervise: {{{ mkdir /usr/local/mailman/supervise }}} We will need two scripts in this directory. The first should be called /usr/local/mailman/supervise/run, and should contain the following text: {{{ #!/bin/sh exec setuidgid mailman ./qrunner }}} Now, create /usr/local/mailman/supervise/qrunner with the following text: {{{ #!/bin/sh # execute a pass through the queues once per minute while `/bin/true`; do # perhaps code to check for and remove locks should go here??? /usr/local/mailman/bin/qrunner --runner=All --once sleep 60 done }}} We should fix up the permissions on this directory now. This is not strictly necessary, but it will stop check_perms from complaining: {{{ cd /usr/local/mailman chmod 2755 supervise chmod 755 supervise/* chown mailman:mailman supervise -R }}} Finally, just link /usr/local/mailman/supervise into your /service directory: {{{ ln -s /usr/local/mailman/supervise/ /service }}} The qrunner process should start within 5 seconds. Use svstat to verify things are working properly. ========== WARNING ========== WARNING ========== WARNING ========== Please keep in mind that this means you won't be able to use mailmanctl to start and stop Mailman. You will need to use daemontools to manage that part of your job, and the standard solutions recommended by others may not be applicable to you if they depend on using mailmanctl for this function. ========== WARNING ========== WARNING ========== WARNING ========== ''Last changed on Tue Apr 24 20:13:17 2007 by'' Brad Knowles <<Color2(Converted from the Mailman FAQ Wizard, col=darkgreen)>>This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]]. |
#REDIRECT DOC/4.54 How do I get qrunner to run under daemontools? |
Differences between revisions 1 and 2
MailmanWiki: DOC/How do I get qrunner to run under daemontools? (last edited 2008-07-31 13:56:40 by dunxd)