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

Wrong killproc callout in init.d script

XMLWordPrintable

    • 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

       

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

              Created:
              Updated:
              Resolved: