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

standard_services() noise on SuSE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.3
    • Component/s: None
    • Labels:
      None

      Description

      On SuSE, the command 'chkconfig SERVICE' prints "SERVICE on" to stdout; I see many emails from our SuSE hosts either containing just e.g. "ypbind on" or some unrelated intermittent message followed by "ypbind on".

      Suggestion for masterfiles (diff against 3.6.4):
      <pre>
      diff -r 618f7daf96f3 lib/3.6/services.cf
      — a/lib/3.6/services.cf Fri Jan 30 10:13:59 2015 +0100
      +++ b/lib/3.6/services.cf Fri Jan 30 12:14:43 2015 +0100
      @@ -168,7 +168,7 @@ bundle agent standard_services(service,s

      chkconfig::
      "onboot"

      • expression => returnszero("$(paths.chkconfig) $(service)", "noshell"),
        + expression => returnszero("$(paths.chkconfig) $(service) > /dev/null", "noshell"),
        comment => "We need to know if the service is configured to start at boot or not";
      1. We redirect stderr and stdout to dev null so that we do not create noise in the logs
        </pre>

      To reproduce:
      <pre>
      bundle agent test
      {
      services:
      SuSE::
      "ypbind" service_policy => "start";
      }
      </pre>

      (I'm unsure if 'masterfiles' issues are supposed to be reported here. If not, where should they be?)

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              hakan Håkan Olsson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel