spampd currently has an old-style rc script, which requires editing the script to change options. Attached is a new script. Fix: #!/bin/sh # # PROVIDE: spampd # # Add the fellowing line to /etc/rc.conf to enable spampd: # # spampd_enable (bool): Set it to "YES" to enable spampd # Default is "NO" # spampd_flags . /etc/rc.subr name="spampd" rcvar=`set_rcvar` : ${spampd_enable="NO"} : ${spampd_pidfile="/var/run/spamd/spampd.pid"} : ${spampd_flags="--user=spamd --group=spamd --host 127.0.0.1:10024 --relayhost=127.0.0.1:10025 --dose --tagall --auto-whitelist"} load_rc_config $name command=/usr/local/sbin/$name command_args="${spampd_flags} --pid=${spampd_pidfile}" pidfile=${spampd_pidfile} sig_stop=-KILL run_rc_command $1
Responsible Changed From-To: freebsd-ports-bugs->perl Over to maintainer
Responsible Changed From-To: perl->freebsd-ports-bugs Wrong responsible fixed
State Changed From-To: open->feedback Ask for maintainer approval.
The original script does not work properly because spampd is a perl process, and so "spampd" does not appear in the process list. This version addresses this. #!/bin/sh # # PROVIDE: spampd # # Add the fellowing line to /etc/rc.conf to enable spampd: # # spampd_enable (bool): Set it to "YES" to enable spampd # Default is "NO" # spampd_flags . /etc/rc.subr name="spampd" rcvar=`set_rcvar` : ${spampd_enable="NO"} : ${spampd_pidfile="/var/run/spamd/spampd.pid"} : ${spampd_flags="--user=spamd --group=spamd --host 127.0.0.1:10024 --relayhost= 127.0.0.1:10025 --dose --tagall --auto-whitelist"} load_rc_config $name command="/usr/local/sbin/$name" command_args="${spampd_flags} --pid=${spampd_pidfile}" pidfile="${spampd_pidfile}" sig_stop="-KILL" stop_cmd="stop_cmd" status_cmd="status_cmd" stop_cmd() { if [ -f "$pidfile" ]; then kill `cat $pidfile` rm -f $pidfile echo -n " spampd" fi } status_cmd() { if [ -f "$pidfile" ]; then echo "${name} is running as pid `cat $pidfile`." else echo "${name} is not running." fi } run_rc_command $1
pav 2006-10-07 11:47:19 UTC FreeBSD ports repository Modified files: mail/spampd Makefile Added files: mail/spampd/files spampd.in Removed files: mail/spampd pkg-plist mail/spampd/files spampd.sh.sample Log: - Switch to rc_subr startup script. The app will now run under spamd user by default PR: ports/99794 Submitted by: Marshal Newrock <marshal@idealso.com> Approved by: maintainer timeout (3 months) Revision Changes Path 1.6 +3 -1 ports/mail/spampd/Makefile 1.1 +47 -0 ports/mail/spampd/files/spampd.in (new) 1.2 +0 -21 ports/mail/spampd/files/spampd.sh.sample (dead) 1.2 +0 -2 ports/mail/spampd/pkg-plist (dead) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: feedback->closed Committed, thanks!
State Changed From-To: closed->open Reopen with new feedback (caught in spamtrap due to HTML email):
Responsible Changed From-To: freebsd-ports-bugs->pav
This new information appears to be a duplicate of ports/121669 which I intend to get into the tree soon(TM). I'd say this PR can be closed as the new information is already recorded in an active PR. Any thoughts Pav? -- WXS
State Changed From-To: open->closed Duplicate of ports/121669 which is being actively handled, so close this one.