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

3.5.3 init.d/cfengine3 breaks cfengine in Debian VMs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.4
    • Component/s: Packaging
    • Labels:
      None

      Description

      /var/lock/subsys is created by the official vmware-tools on Debian systems.
      So this directory exists on Debian VMs within vmware.

      The following (new in 3.5.3) code prevents cfengine3 from starting, or more generally,
      the init.d script from doing much of anything.

      So a simple upgrade kills cfengine dead on these Debian VMs.

      Here is the problem code:
      <pre>

      1. Debian/Ubuntu
        if [ ! -d /var/lock/subsys ] && [ -f /usr/bin/apt-get ]; then
        DEBIAN=1
        else
        DEBIAN=0
        fi
        </pre>

      The init.d script does not seem to be in the git repository, so I could not read the history about the commit or discover the author - to question him/her about the reasoning. But I would suggest a patch like this:

      <pre>

      1. Debian/Ubuntu
        if [ "$SUSE" = "0" ] && [ "$REDHAT" = "0" ] && [ -f /usr/bin/apt-get ]; then
        DEBIAN=1
        else
        DEBIAN=0
        fi

      if [ "$SUSE" = "0" ] && [ "$REDHAT" = "0" ] && [ "$DEBIAN" = "0" ]; then
      $ECHO "OS could not be detected"
      exit 2
      fi
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                chrishiestand Chris Hiestand
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel