diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2014-10-21 08:38:23 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2014-10-21 08:38:23 +0000 |
commit | 074afca91bf54e79a18f92b4a9805b423231d584 (patch) | |
tree | 6894188674a6bc52483c70a590540bf84e36b835 /dev-util/jenkins-bin/files/jenkins-bin.logrotate | |
parent | Remove old development versions (diff) | |
download | historical-074afca91bf54e79a18f92b4a9805b423231d584.tar.gz historical-074afca91bf54e79a18f92b4a9805b423231d584.tar.bz2 historical-074afca91bf54e79a18f92b4a9805b423231d584.zip |
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.
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0xB5058F9A
Diffstat (limited to 'dev-util/jenkins-bin/files/jenkins-bin.logrotate')
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin.logrotate | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-util/jenkins-bin/files/jenkins-bin.logrotate b/dev-util/jenkins-bin/files/jenkins-bin.logrotate new file mode 100644 index 000000000000..1a9497aa02a4 --- /dev/null +++ b/dev-util/jenkins-bin/files/jenkins-bin.logrotate @@ -0,0 +1,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 +} |