ports/99794: rc script for spampd
Marshal Newrock
marshal at idealso.com
Wed Jul 5 00:50:20 UTC 2006
>Number: 99794
>Category: ports
>Synopsis: rc script for spampd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 05 00:50:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Marshal Newrock
>Release: 6.1
>Organization:
Ideal Solution
>Environment:
FreeBSD sa1.freedombi.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root at opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386
>Description:
spampd currently has an old-style rc script, which requires editing the script to change options. Attached is a new script.
>How-To-Repeat:
>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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list