| Summary: | ${etcdir} won't be set properly for some condition | ||
|---|---|---|---|
| Product: | Base System | Reporter: | SANETO Takanori <sanewo> |
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
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) State Changed From-To: open->closed Closed at submitter's request. |
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.