Use /etc/rc.conf.local for sevice configuration on FreeBSD

/etc/rc.conf.local is the preferred location for system-specific
startup configuration, and /usr/local/etc/rc.conf generally isn’t used.

see:
http://www.freebsd.org/doc/handbook/configtuning-core-configuration.html
reviewable/pr18780/r1
Tyler 11 years ago
parent e88f45e586
commit c073438d40

@ -784,7 +784,7 @@ class FreeBsdService(Service):
else:
self.rcconf_value = "NO"
rcfiles = [ '/etc/rc.conf','/usr/local/etc/rc.conf' ]
rcfiles = [ '/etc/rc.conf','/etc/rc.conf.local' ] # prefer /etc/rc.conf.local if it exists
for rcfile in rcfiles:
if os.path.isfile(rcfile):
self.rcconf_file = rcfile

Loading…
Cancel
Save