Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3167

Service state not properly detected on FreeBSD

    XMLWordPrintable

    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

        Attachments

          Release management

            Activity

              People

              Assignee:
              a10042 Nick Anderson
              Reporter:
              a10042 Nick Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: