Subject: pkg/18928: /etc/rc.d/spamd can never start at boot
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/04/2002 10:08:19
>Number:         18928
>Category:       pkg
>Synopsis:       /etc/rc.d/spamd can never start at boot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 04 10:09:01 PST 2002
>Originator:     Frank Cusack
>Release:        NetBSD 1.6
System: NetBSD 1.6 NetBSD 1.6 (moltar) #6: Mon Oct 7 01:03:19 PDT 2002 sparc64
Architecture: sparc64
Machine: sparc64
	[ package SpamAssassin ]
	/etc/rc.d/spamd sets defaults for $spamd and $spamd_flags, and
	claims (in a comment) that these can be overridden in /etc/rc.conf.
	However, they cannot.  load_rc_config(), at the bottom of the
	script, does NOT re-load rc.conf at boot time, because
	$_rc_conf_loaded is already set.  The effect is that the values
	in the spamd script are always the values used.  Probably not
	caught because when run by hand, $_rc_conf_loaded is not set,
	and so the script appears to work.
	Two options:
	1) move the spamd default settings to /etc/defaults/rc.conf.
	2) unset $_rc_conf_loaded before calling load_rc_config().

	The first option seems better.