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

Configuration UI to disable process tree killer selectively

    • Icon: Improvement Improvement
    • Resolution: Incomplete
    • Icon: Trivial Trivial
    • core
    • None
    • Platform: Sun, OS: Solaris

      Due to fix https://hudson.dev.java.net/issues/show_bug.cgi?id=2729, I can't
      restart my tomcat instance with using a script which worked fine before 1.283.
      My script called fastRestart.sh is :
      PWD=`pwd`
      cd $PWD
      #BUILD_ID="dontKillMe catalina.sh start"
      #BUILD_ID="dontKillMe ./startup.sh"
      echo $BUILD_ID
      kill -9 `cat ./tomcat.pid` && ./startup.sh

      My hudson job do :
      BUILD_ID=dontKillMe startup.sh && cd
      /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin && ./fastRestart.sh

      job console output :
      started
      [workspace] $ /bin/sh -xe
      /local/dotw/tmp/hudson-tmp/hudson3776950102996593394.sh
      BUILD_ID=dontKillMe startup.sh
      + cd /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
      + ./fastRestart.sh
      + pwd
      PWD=/local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
      + cd /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
      + echo dontKillMe startup.sh
      dontKillMe startup.sh
      + cat ./tomcat.pid
      + kill -9 9822
      + ./startup.sh
      finished: SUCCESS

      Here the tomcat has been killed and restarted but immediatly stop due to fix for
      2729.
      Is there any other workaround ?
      IMHO we should have a flag when running a script which "don't kill child
      processes" (to preserve a minimum of backward compatibility and a minimum of
      some jobs/scripts rewriting)

      Thanks

      Olivier

          [JENKINS-3105] Configuration UI to disable process tree killer selectively

          Olivier Lamy created issue -
          mdonohue made changes -
          Link New: This issue is duplicated by JENKINS-3125 [ JENKINS-3125 ]
          Martin d'Anjou made changes -
          Link New: This issue is related to JENKINS-17116 [ JENKINS-17116 ]
          Jason Spangler made changes -
          Link New: This issue is related to JENKINS-9104 [ JENKINS-9104 ]
          Oleg Nenashev made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: other [ 15490 ]
          Alexey Larsky made changes -
          Attachment New: Prepare job env.png [ 28597 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 133178 ] New: JNJira + In-Review [ 173994 ]
          Marat Radchenko made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            olamy Olivier Lamy
            Votes:
            13 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: