1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
This commit is contained in:
Tyler 2014-01-08 13:48:11 -05:00
parent 3ed902eee2
commit 1a655b2dd7

View file

@ -784,7 +784,7 @@ class FreeBsdService(Service):
else: else:
self.rcconf_value = "NO" 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: for rcfile in rcfiles:
if os.path.isfile(rcfile): if os.path.isfile(rcfile):
self.rcconf_file = rcfile self.rcconf_file = rcfile