Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526166 - dev-util/jenkins-bin - add logrotate support
Summary: dev-util/jenkins-bin - add logrotate support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Manuel Rüger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-21 03:17 UTC by Travis Hansen
Modified: 2014-10-21 08:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Travis Hansen 2014-10-21 03:17:00 UTC
Please include a logrote file for jenkins.

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

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-21 07:53:05 UTC

*** This bug has been marked as a duplicate of bug 453658 ***
Comment 2 Travis Hansen 2014-10-21 08:26:21 UTC
This isn't a dupe.  The other bug should be closed as it's now/already in portage.

Thanks!
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2014-10-21 08:41:29 UTC
+*jenkins-bin-1.584-r1 (21 Oct 2014)
+
+  21 Oct 2014; Tony Vroon <chainsaw@gentoo.org> -jenkins-bin-1.584.ebuild,
+  +jenkins-bin-1.584-r1.ebuild, +files/jenkins-bin.init2,
+  +files/jenkins-bin.logrotate:
+  Logrotate snippet as written by Travis Hansen in bug #526166. Stop attempting
+  to create a /var/run directory structure, those sands have shifted. Enhance
+  init script to create home directory if missing. Do not assign the jenkins
+  user a shell as it is not needed, as per Agostino "ago" Sarubbo on
+  #gentoo-dev. Remove older revision.

Thank you for contribution to Gentoo Linux. My apologies for the bug wrangling mixup.