Date: Thu, 25 Mar 2004 07:11:28 -0800 (PST) From: Sheldon Hearn <sheldonh@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/64713: mail/p5-Mail-SpamAssassin's spamd.sh hardwires pidfile Message-ID: <200403251511.i2PFBS6q045417@freefall.freebsd.org> Resent-Message-ID: <200403251520.i2PFKFuX045696@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 64713 >Category: ports >Synopsis: mail/p5-Mail-SpamAssassin's spamd.sh hardwires pidfile >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 25 07:20:15 PST 2004 >Closed-Date: >Last-Modified: >Originator: Sheldon Hearn >Release: FreeBSD 4.9-STABLE i386 >Organization: Clue >Environment: System: FreeBSD freefall.freebsd.org 4.9-STABLE FreeBSD 4.9-STABLE #11: Thu Feb 5 19:43:44 PST 2004 kensmith@freefall.freebsd.org:/c/src/sys/compile/FREEFALL i386 n/a >Description: The spamd.sh startup script from mail/p5-Mail-SpamAssassin hardwires the path to the pidfile. It is possible to override this in spamd_flags, but the hardwiring then breaks. >How-To-Repeat: Use this or similar in /etc/rc.conf: spamd_enable="YES" spamd_pidfile="/var/spamd/run/spamd.pid" spamd_flags="-r $spamd_pidfile -H /var/spamd/home -u mailnull -c -d" >Fix: This patch works for me. Index: spamd.sh =================================================================== RCS file: /home/ncvs/ports/mail/p5-Mail-SpamAssassin/files/spamd.sh,v retrieving revision 1.5 diff -u -d -r1.5 spamd.sh --- spamd.sh 13 Jan 2004 08:29:28 -0000 1.5 +++ spamd.sh 25 Mar 2004 15:04:23 -0000 @@ -22,7 +22,6 @@ rcvar=`set_rcvar` command=%%PREFIX%%/bin/spamd -pidfile=/var/run/spamd.pid required_dirs=%%PREFIX%%/share/spamassassin stop_postcmd=stop_postcmd @@ -36,6 +35,7 @@ spamd_enable=${spamd_enable:-"NO"} spamd_flags=${spamd_flags:-"-a -c -d -r ${pidfile}"} +spamd_pidfile=${spamd_pidfile:-"/var/run/spamd.pid"} load_rc_config $name run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403251511.i2PFBS6q045417>