[Bug 1331891] [NEW] [systemd] /etc/logrotate.d/rsyslog fails to reload rsyslog

Anders Kaseorg andersk at mit.edu
Thu Jun 19 02:22:59 UTC 2014


Public bug reported:

/etc/logrotate.d/rsyslog contains

        postrotate
                reload rsyslog >/dev/null 2>&1 || true
        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
ProcVersionSignature: Ubuntu 3.15.0-6.11-generic 3.15.0
Uname: Linux 3.15.0-6-generic x86_64
NonfreeKernelModules: openafs
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)

** Affects: rsyslog (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug systemd-boot utopic

** Description changed:

  /etc/logrotate.d/rsyslog contains
  
-         postrotate
-                 reload rsyslog >/dev/null 2>&1 || true
-         endscript
+         postrotate
+                 reload rsyslog >/dev/null 2>&1 || true
+         endscript
  
- which works on Upstart but not on systemd. It should be changed to
- ‘service rsyslog reload’ or ‘invoke-rc.d rsyslog reload’ or something.
+ 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
  ProcVersionSignature: Ubuntu 3.15.0-6.11-generic 3.15.0
  Uname: Linux 3.15.0-6-generic x86_64
  NonfreeKernelModules: openafs
  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)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rsyslog in Ubuntu.
https://bugs.launchpad.net/bugs/1331891

Title:
  [systemd] /etc/logrotate.d/rsyslog fails to reload rsyslog

Status in “rsyslog” package in Ubuntu:
  New

Bug description:
  /etc/logrotate.d/rsyslog contains

          postrotate
                  reload rsyslog >/dev/null 2>&1 || true
          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
  ProcVersionSignature: Ubuntu 3.15.0-6.11-generic 3.15.0
  Uname: Linux 3.15.0-6-generic x86_64
  NonfreeKernelModules: openafs
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/1331891/+subscriptions



More information about the foundations-bugs mailing list