Bug 102275

Summary: ${etcdir} won't be set properly for some condition
Product: Base System Reporter: SANETO Takanori <sanewo>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description SANETO Takanori 2006-08-19 16:10:15 UTC
In rc.subr, under conditions below, etcdir won't be set properly ("/etc" or "/usr/local/etc"):
- /usr/local/etc/rc.d/samba invoked from /etc/rc
- /etc/rc.conf.d/samba not exist
- /usr/local/etc/rc.conf.d/samba does exist

In this case, etcdir will be set to /etc/rc/etc.

Fix: 

For workaround, you can put "command=/usr/local/sbin/_dummy_" in /usr/local/etc/rc.d/samba (samba_program= should be OK, too).
How-To-Repeat: As described above.
Comment 1 sanewo 2006-09-03 09:33:54 UTC
Recent change (backout) of /etc/rc.subr (1.68) makes this problem not happen.
So I think this PR can be closed.

With above change, config files under /usr/local/etc/rc.conf.d/ won't
work anymore. I should use /etc/rc.conf.d/ instead. (As it was before)
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-09-03 15:39:19 UTC
State Changed
From-To: open->closed

Closed at submitter's request.