[systemd] /etc/logrotate.d/rsyslog fails to instruct rsyslog to close & reopen fds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rsyslog (Debian) |
Fix Released
|
Unknown
|
|||
rsyslog (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
/etc/logrotate.
postrotate
endscript
which works on Upstart but not on systemd. Therefore, after logs are rotated, rsyslog continues to write to the old files, leaving the new files empty. It should be changed to ‘service rsyslog reload’ or ‘invoke-rc.d rsyslog reload’ or something.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: rsyslog 7.4.4-1ubuntu3
ProcVersionSign
Uname: Linux 3.15.0-6-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.3-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Jun 18 22:20:53 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2010-12-05 (1291 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
SourcePackage: rsyslog
UpgradeStatus: Upgraded to utopic on 2013-10-31 (230 days ago)
Related branches
Changed in rsyslog (Ubuntu): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
Changed in rsyslog (Ubuntu): | |
status: | New → Incomplete |
status: | Incomplete → Fix Committed |
assignee: | Dimitri John Ledkov (xnox) → Martin Pitt (pitti) |
Changed in rsyslog (Debian): | |
status: | Unknown → New |
Changed in rsyslog (Debian): | |
status: | New → Fix Released |
Changed in rsyslog (Debian): | |
status: | Fix Released → New |
Changed in rsyslog (Debian): | |
status: | New → Fix Committed |
Changed in rsyslog (Debian): | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package rsyslog - 7.4.4-1ubuntu5
---------------
rsyslog (7.4.4-1ubuntu5) utopic; urgency=medium
* Use "service" command in rsyslog's postrotate, since naked "reload"
fails under non-upstart init. (LP: #1331891)
-- Dimitri John Ledkov <email address hidden> Tue, 08 Jul 2014 09:24:53 +0100