Bug 17378

Summary: periodic(8) doesn't care about the local /etc/rc.conf
Product: Base System Reporter: girgen <girgen>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description girgen 2000-03-15 00:00:01 UTC
in /usr/sbin/periodic, the shell script first eat
/etc/defaults/rc.conf and then only if that file does not exist does
it try to read /etc/rc.conf. Isn't /etc/rc.conf supposed to override
/etc/defaults/rc.conf?

Fix: === cd /opt/current/src/usr.sbin/periodic/
=== cvs diff -u periodic.sh
Comment 1 fullermd 2000-03-15 00:16:53 UTC
On Wed, Mar 15, 2000 at 12:56:02AM +0100, a little birdie told me
that Palle Girgensohn remarked
> 
> >Description:
> in /usr/sbin/periodic, the shell script first eat
> /etc/defaults/rc.conf and then only if that file does not exist does
> it try to read /etc/rc.conf. Isn't /etc/rc.conf supposed to override
> /etc/defaults/rc.conf?

root% tail -6 /etc/defaults/rc.conf
for i in ${rc_conf_files}; do
        if [ -f $i ]; then
                . $i
        fi
done



-- 
Matthew Fuller     (MF4839)     |    fullermd@over-yonder.net
Unix Systems Administrator      |    fullermd@futuresouth.com
Specializing in FreeBSD         |    http://www.over-yonder.net/

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-15 08:34:42 UTC
State Changed
From-To: open->closed

This was a question, nota bug report.  It's been answered. :-)