Starting qrunner for FreeBSD

Hi,
I am a newbie and running Mailman 2.1.1 on FreeBSD 4.7 / VPSv2, which works with the old technique of running qrunner every minute from cron. The INSTALL instructions give some hints on how to start the qrunner daemon at startup time (apparently the preferred mode for 2.1.x), but this seems geared to Linux. I would appreciate any hints on what the best solution for FreeBSD systems is.
Amardeo.
-- Amardeo Sarma sarma@gwup.com

There is not BSD specific documentation in there. I was thinking about submitting a patch for anyone who wants it...
Basically, (I use OpenBSD), you need to set this stuff in /etc/rc.local and /etc/rc.shutdown instead of /etc/rc.d/init.d. BSDs are BSDish. Linux is SysVish. The layout of some of the file system (including config files) is a bit different. Linux, being the most popular, is the one that typically gets documented and BSDers just have to get to it themselves.
- JMM
On Wed, 25 Jun 2003, Amardeo Sarma wrote:

On Wed, Jun 25, 2003 at 06:10:20AM +0200, Amardeo Sarma wrote:
Just link /usr/local/mailman/bin/mailmanctl to /usr/local/etc/rc.d/mailman.sh
Something like (adjust path as necessary): ln -s /usr/local/etc/rc.d/mailman.sh /usr/local/mailman/bin/mailmanctl
Do note, however, that if the system crashes, the stale lockfile may not get removed when it comes back up.
You could put a script in /usr/local/etc/rc.d/00somename.sh that does something like (untested):
#!/bin/sh # remove dead links case "$1" in start) test -f /usr/local/mailman/locks/master-qrunner && rm /usr/local/mailman/locks/master-qrunner ;; stop) ;; esac
Running mailmanctl -s *should* fix stale lockfiles, but doesn't seem to work in my experience (see some past posts to the list as well).
-- "Since when is skepticism un-American? Dissent's not treason but they talk like it's the same..." (Sleater-Kinney - "Combat Rock")

There is not BSD specific documentation in there. I was thinking about submitting a patch for anyone who wants it...
Basically, (I use OpenBSD), you need to set this stuff in /etc/rc.local and /etc/rc.shutdown instead of /etc/rc.d/init.d. BSDs are BSDish. Linux is SysVish. The layout of some of the file system (including config files) is a bit different. Linux, being the most popular, is the one that typically gets documented and BSDers just have to get to it themselves.
- JMM
On Wed, 25 Jun 2003, Amardeo Sarma wrote:

On Wed, Jun 25, 2003 at 06:10:20AM +0200, Amardeo Sarma wrote:
Just link /usr/local/mailman/bin/mailmanctl to /usr/local/etc/rc.d/mailman.sh
Something like (adjust path as necessary): ln -s /usr/local/etc/rc.d/mailman.sh /usr/local/mailman/bin/mailmanctl
Do note, however, that if the system crashes, the stale lockfile may not get removed when it comes back up.
You could put a script in /usr/local/etc/rc.d/00somename.sh that does something like (untested):
#!/bin/sh # remove dead links case "$1" in start) test -f /usr/local/mailman/locks/master-qrunner && rm /usr/local/mailman/locks/master-qrunner ;; stop) ;; esac
Running mailmanctl -s *should* fix stale lockfiles, but doesn't seem to work in my experience (see some past posts to the list as well).
-- "Since when is skepticism un-American? Dissent's not treason but they talk like it's the same..." (Sleater-Kinney - "Combat Rock")
participants (3)
-
Amardeo Sarma
-
John Michael Mars
-
william+mm@hq.newdream.net