Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11742

Jenkins PID changes after restart

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      RHEL/Fedora, Jenkins 1.438 (probably all/ all recent version are affected) installed from rpm
    • Similar Issues:

      Description

      When Jenkins is started as a service and the restart is done from web page Jenkins PID is changed, but in
      /var/run/jenkins.pid remains the old one, which make problem e.g. when stopping Jenkins.

      Reproducer:
      1. install jenkins from rpm
      2. run service jenkins start
      3. restart Jenkins from the UI (e.g. after plugin installation)
      4. run service jenkins stop / check Jenkins PID and compare with PID in /var/run/jenkins.pid

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/lifecycle/UnixLifecycle.java
          http://jenkins-ci.org/commit/jenkins/f3566d10b2585e333d6a2d5ccd23c70752f1c584
          Log:
          [FIXED JENKINS-11742] don't change PID when a daemon is restarting

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/lifecycle/UnixLifecycle.java http://jenkins-ci.org/commit/jenkins/f3566d10b2585e333d6a2d5ccd23c70752f1c584 Log: [FIXED JENKINS-11742] don't change PID when a daemon is restarting
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1296
          [FIXED JENKINS-11742] don't change PID when a daemon is restarting

          Kohsuke Kawaguchi : f3566d10b2585e333d6a2d5ccd23c70752f1c584
          Files :

          • core/src/main/java/hudson/lifecycle/UnixLifecycle.java
          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1296 [FIXED JENKINS-11742] don't change PID when a daemon is restarting Kohsuke Kawaguchi : f3566d10b2585e333d6a2d5ccd23c70752f1c584 Files : core/src/main/java/hudson/lifecycle/UnixLifecycle.java changelog.html
          Hide
          vjuranek vjuranek added a comment -

          Bugfix verified, works fine

          Show
          vjuranek vjuranek added a comment - Bugfix verified, works fine
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/lifecycle/UnixLifecycle.java
          http://jenkins-ci.org/commit/jenkins/3bf2e4f0f3e04d0cbccbe2656fece9ea96721ab1
          Log:
          [FIXED JENKINS-11742] don't change PID when a daemon is restarting
          (cherry picked from commit f3566d10b2585e333d6a2d5ccd23c70752f1c584)

          Conflicts:

          changelog.html

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/lifecycle/UnixLifecycle.java http://jenkins-ci.org/commit/jenkins/3bf2e4f0f3e04d0cbccbe2656fece9ea96721ab1 Log: [FIXED JENKINS-11742] don't change PID when a daemon is restarting (cherry picked from commit f3566d10b2585e333d6a2d5ccd23c70752f1c584) Conflicts: changelog.html

            People

            • Assignee:
              vjuranek vjuranek
              Reporter:
              vjuranek vjuranek
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: