summaryrefslogtreecommitdiff
blob: 1a9497aa02a4dc570debba34cc90ca9effa5f9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/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 ] && source /etc/conf.d/jenkins
        if [ -s /var/run/jenkins/jenkins.pid ]; then
            JPID=`cat /var/run/jenkins/jenkins.pid`
            test -n "`find /proc/$JPID -maxdepth 0 -user ${RUN_AS:-jenkins} 2>/dev/null`" && kill -s ALRM $JPID || :
        fi
    endscript
}