Details
-
Type:
Bug
-
Status: Done
-
Priority:
(None)
-
Resolution: Fixed
-
Affects Version/s: 3.15.0b1
-
Fix Version/s: 3.15.0
-
Component/s: None
-
Labels:None
Description
From the pull request:
https://github.com/cfengine/masterfiles/pull/1330#issue-258167386
Services do not detect state on FreeBSD due to wrong path to init scripts when using the default sysvservice facility. Replace /etc/rc.d/$(service) with /usr/local/etc/rc.d/$(service) or /etc/rc.d/$(service) if the first does not exist.
https://github.com/cfengine/masterfiles/pull/1330#issuecomment-471127521
@nickanderson 3rd party software installed via the ports system gets installed to /usr/local by default on FreeBSD. First checking to see if the rc script to start and stop the daemon is in /usr/local and defaulting to /etc/rc.d if it does not seems reasonable