Wrong killproc callout in init.d script

This issue is archived. You can view it, but you can't modify it. Learn more

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

       

            Assignee:
            Basil Crow
            Reporter:
            unim unim
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: