1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/community/jenkins/jenkins.logrotate
2017-11-07 00:05:08 +00:00

17 lines
483 B
Text

/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
}