You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate

18 lines
483 B

/var/log/jenkins/jenkins.log /var/log/jenkins/access_log {
compress
dateext
maxage 365
rotate 99
size=+4096k
notifempty
missingok
create 644
postrotate
[ -r /etc/conf.d/jenkins ] && . /etc/conf.d/jenkins
if [ -s /var/run/jenkins.pid ]; then
JPID=$(cat /var/run/jenkins.pid)
test -n "$(find /proc/$JPID -maxdepth 0 -user ${RUN_AS:-jenkins} 2>/dev/null)" && kill -s ALRM $JPID || :
fi
endscript
}