reload jenkins after log rotation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jenkins (Ubuntu) |
Fix Released
|
Low
|
James Page | ||
Precise |
Fix Released
|
Medium
|
Jean-Baptiste Lallement |
Bug Description
There is a postrotate action missing from /etc/logrotate.
Currently jenkins log file stop updating after log rotation.
[Test Case]
1. Start Jenkins
2. Check that messages are logged in /var/log/
3. Rotate the logs:
$ sudo logrotate -f /etc/logrotate.
4. Check the the log has been rotated (a 0 byte jenkins.log file has been created)
5. Wait for a message to be logged by executing a job for example.
Result:
Without this fix: The log file /var/log/
With this fix: A message is logged in /var/log/
[Regression Potential]
None, since nothing is logged currently after log rotation.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: jenkins (not installed)
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Wed May 2 08:55:23 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64+mac (20120328)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: jenkins
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Martin Pitt: Approve
-
Diff: 59 lines (+14/-3)4 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/jenkins-slave.logrotate (+2/-1)
debian/jenkins.logrotate (+2/-1)
Changed in jenkins (Ubuntu Precise): | |
assignee: | nobody → Jean-Baptiste Lallement (jibel) |
status: | Triaged → In Progress |
Changed in jenkins (Ubuntu Precise): | |
status: | In Progress → Fix Committed |
Reload is not possible (not supported) but there is a logrotate option that will deal with this issue.
I'll work this into the next update I do.