Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3717

Log output of service restart commands

    Details

    • Type: New Feature
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compiler
    • Environment:

      puppet-2.6.18-3.el5 for example. According to docs, this feature is not present in 3.x either.

    • Template:
    • Team:
      Platform OS

      Description

      http://serverfault.com/questions/575495/can-i-get-the-exact-error-when-starting-apache-using-puppet

      Sometimes, apparently randomly, my Apache restarts fail with this error:

      Nov 22 05:55:35 censored puppet-agent[30180]: (/Stage[main]/Server::Apache::Service/Service[apache]) Failed to call refresh: Could not restart Service[apache]: Execution of '/sbin/service httpd restart' returned 1: at /etc/puppet/environments/production/modules/server/manifests/apache/service.pp:17

      When this happens the old Apache process sits around alongside the new one, and the number of processes on the machine slowly builds up until it dies.

      How do I debug this? It would be really helpful to see the console output from the restart command. However it seems that only Exec resources have a `logoutput` parameter, not Service resources. This would be really useful to add.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                qris Chris Wilson
                QA Contact:
                Kurt Wall
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support