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

Debian init script should kill hudson if the process does not terminate within a certain timeout

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: other
    • Labels:
      None
    • Environment:
      Ubuntu 8.04LTS using the Debian Package
    • Similar Issues:

      Description

      It happens quite often (e.g. if Hudson got a OutOfMemoryError) that after stopping it with the init script the process ist still there.
      Another try to stop it results in an error, since the PID file has already been deleted.
      It would be good, to monitor the termination of hudson and if it didn't within a certain time (e.g. 30s) then kill it (maybe it is required to kill both java processes that are running).

      There are several other init scripts which already show how to do this - e.g. the tomcat init script on Ubuntu.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          debian/debian/jenkins.init
          http://jenkins-ci.org/commit/core/15c66f0d201471db7c8ae361633c9f5acb632d2c
          Log:
          [FIXED JENKINS-5415] force terminate Jenkins if it fails to shut down

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html debian/debian/jenkins.init http://jenkins-ci.org/commit/core/15c66f0d201471db7c8ae361633c9f5acb632d2c Log: [FIXED JENKINS-5415] force terminate Jenkins if it fails to shut down
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          debian/jenkins.init
          http://jenkins-ci.org/commit/packaging/ac907083c18c836600bbe2bdfa5fe97c22f5e752
          Log:
          [FIXED JENKINS-5415] force terminate Jenkins if it fails to shut down

          Originally-From: jenkins-ci.org/commit/core/15c66f0d201471db7c8ae361633c9f5acb632d2c

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: debian/jenkins.init http://jenkins-ci.org/commit/packaging/ac907083c18c836600bbe2bdfa5fe97c22f5e752 Log: [FIXED JENKINS-5415] force terminate Jenkins if it fails to shut down Originally-From: jenkins-ci.org/commit/core/15c66f0d201471db7c8ae361633c9f5acb632d2c

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ahochsteger ahochsteger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: