ports/64713: mail/p5-Mail-SpamAssassin's spamd.sh hardwires pidfile
Sheldon Hearn
sheldonh at FreeBSD.org
Thu Mar 25 15:20:15 UTC 2004
>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 at 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:
More information about the freebsd-ports-bugs
mailing list