Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-1742

SysVinit script doesn't restart the process

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SERVER 2.8.0, SERVER 5.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Puppet Server 2.7.2
      Java 1.8.0-112

    • Template:
    • Team:
      Release Engineering
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      When the sysvinit script for Puppetserver was used to restart Puppetserver, it would always try to start the service even if stopping the service failed. In addition there are some cases where Puppetserver might not terminate immediately when sent a SIGKILL, which exacerbated the issue with starting Puppetserver when it failed to stop. This has been resolved by waiting for a grace period after Puppetserver has been SIGKILLed to ensure that it did actually exit, and only attempting to start the service when the stop action succeeds.
      Show
      When the sysvinit script for Puppetserver was used to restart Puppetserver, it would always try to start the service even if stopping the service failed. In addition there are some cases where Puppetserver might not terminate immediately when sent a SIGKILL, which exacerbated the issue with starting Puppetserver when it failed to stop. This has been resolved by waiting for a grace period after Puppetserver has been SIGKILLed to ensure that it did actually exit, and only attempting to start the service when the stop action succeeds.
    • QA Risk Assessment:
      Needs Assessment

      Description

      PuppetServer init script sometimes doesn't restart the process:

      host » sudo service puppetserver restart
      Stopping puppetserver: Process 25720 not terminated gracefully after 60 seconds
      Process 25720 not killed after SIGKILL
                                                                 [FAILED]
      Starting puppetserver:                                     [  OK  ]
      host :: ~ » ps -ef | grep java
      343277 50061 49554  0 21:29 pts/1  00:00:00 grep java
      host :: ~ »
      

      Running restart again actually starts it.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                ajf Andrew Forgue
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: