Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2006 00:43:43 GMT
From:      Marshal Newrock <marshal@idealso.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/99794: rc script for spampd
Message-ID:  <200607050043.k650hgCN069690@www.freebsd.org>
Resent-Message-ID: <200607050050.k650oJF0038226@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607050043.k650hgCN069690>