• 2.335

      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

       

          [JENKINS-60763] Wrong killproc callout in init.d script

          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

          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

          unim unim added a comment -

          Sorry.

          OS is CentOS latest.

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

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

          Basil Crow added a comment -

          As of 2.335, the RPM packages use systemd and no longer call killproc.

          Basil Crow added a comment - As of 2.335, the RPM packages use systemd and no longer call killproc .

            basil Basil Crow
            unim95 unim unim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: