Skip to content

Commit

Permalink
[FIXED JENKINS-5784]
Browse files Browse the repository at this point in the history
Applied the change from Olav Reinert.
  • Loading branch information
kohsuke committed Mar 22, 2012
1 parent 2b5a24c commit 8fb2f51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -55,6 +55,9 @@
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=bug>
Fixed a log rotation portability problem on RedHat RPM package.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-5784">issue 5784</a>)
<li class=bug>
Computer.getHostName() returns null when it is not.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-13185">issue 13185</a>)
Expand Down
5 changes: 4 additions & 1 deletion rpm/SOURCES/jenkins.logrotate
Expand Up @@ -8,6 +8,9 @@
missingok
create 644
postrotate
kill -s SIGALRM `cat /var/run/jenkins.pid`
if [ -s /var/run/jenkins.pid ]; then
JPID=`cat /var/run/jenkins.pid`
test -n "`find /proc/$JPID -maxdepth 0 -user jenkins 2>/dev/null`" && /bin/kill -s ALRM $JPID || :
fi
endscript
}

0 comments on commit 8fb2f51

Please sign in to comment.