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

Wrong killproc callout in init.d script

    Details

    • Similar Issues:

      Description

      Wrong callout of killproc in init.d script

      For systems with multiple Jenkins services on one physical server, init script performs "Stop" and "Restart" on first started Jenkins service. 

      Repair is very simple.

      In default Jenkins  init.d script "stop" function should be edited.

      From

       

      stop)
       echo -n "Shutting down Jenkins "
       killproc jenkins
       rm -f $JENKINS_LOCKFILE
       RETVAL=$?
       echo
       ;;
      

       

      To

       

      stop)
       echo -n "Shutting down Jenkins "
       killproc -p $JENKINS_PID_FILE
       rm -f $JENKINS_LOCKFILE
       RETVAL=$?
       echo
       ;;
      

       

       

      Sorry for my bad english.
      It is not my first language.

      If it is needed more explanations, Please ask and don't close issue

       

        Attachments

          Activity

          Hide
          halkeye Gavin Mogan added a comment -

          What OS is this for? debian? redhat? ubuntu?

          I'm guessing redhat based on a quick github search - https://github.com/jenkinsci/packaging/blob/c769106fee90389518326dd410d02825ff2b11a7/rpm/build/SOURCES/jenkins.init.in#L142-L143

          Show
          halkeye Gavin Mogan added a comment - What OS is this for? debian? redhat? ubuntu? I'm guessing redhat based on a quick github search - https://github.com/jenkinsci/packaging/blob/c769106fee90389518326dd410d02825ff2b11a7/rpm/build/SOURCES/jenkins.init.in#L142-L143
          Hide
          unim95 unim unim added a comment -

          Sorry.

          OS is CentOS latest.

          Also same behavior i have got under RHEL 7.4 and 7.6 installations.

          Show
          unim95 unim unim added a comment - Sorry. OS is CentOS latest. Also same behavior i have got under RHEL 7.4 and 7.6 installations.

            People

            • Assignee:
              Unassigned
              Reporter:
              unim95 unim unim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: