Subject: pkg/22724: rc.d script for spamass-milter
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@cjones.org>
List: netbsd-bugs
Date: 09/08/2003 17:02:10
>Number:         22724
>Category:       pkg
>Synopsis:       rc.d script for spamass-milter
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 08 23:03:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Chris Jones
>Release:        NetBSD 1.6.1_STABLE
>Organization:
chris@mt.sri.com -----------------------------------------------------
Chris Jones                                    SRI International, Inc.
www.mt.sri.com                                             www.sri.com
>Environment:
	
	
System: NetBSD gamera.mt.sri.com 1.6.1_STABLE NetBSD 1.6.1_STABLE (GAMERA) #0: Tue Aug 5 11:37:23 MDT 2003 chris@gamera.mt.sri.com:/usr/src/sys/arch/i386/compile/GAMERA i386
Architecture: i386
Machine: i386
>Description:
mail/spamass-milter doesn't include a startup script.  I've included
one here, which works on my machine.  I believe I've followed all the
rules in writing it.
>How-To-Repeat:
	
>Fix:
#!/bin/sh
#
# $NetBSD$
#

# PROVIDE: spamass-milter
# REQUIRE: spamd
# KEYWORD: shutdown

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
export PATH

if [ -f /etc/rc.subr ]
then
	. /etc/rc.subr
fi

name="spamass_milter"
command="/usr/local/sbin/spamass-milter"
command_args="-u nobody -p /var/run/spamass.sock -f"

load_rc_config $name
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted: