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

0 views
Skip to first unread message

yanunim95@gmail.com (JIRA)

unread,
Jan 14, 2020, 9:44:09 AM1/14/20
to jenkinsc...@googlegroups.com
unim unim created an issue
 
Jenkins / Improvement JENKINS-60763
Wrong killproc callout in init.d script
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: _unsorted
Created: 2020-01-14 14:43
Priority: Minor Minor
Reporter: unim unim

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

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jenkins@gavinmogan.com (JIRA)

unread,
Feb 15, 2020, 1:15:03 PM2/15/20
to jenkinsc...@googlegroups.com
Gavin Mogan updated an issue
Change By: Gavin Mogan
Component/s: core
Component/s: packaging
Component/s: _unsorted

jenkins@gavinmogan.com (JIRA)

unread,
Feb 15, 2020, 1:15:03 PM2/15/20
to jenkinsc...@googlegroups.com

yanunim95@gmail.com (JIRA)

unread,
Feb 15, 2020, 3:03:03 PM2/15/20
to jenkinsc...@googlegroups.com

Sorry.

OS is CentOS latest.

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

Reply all
Reply to author
Forward
0 new messages