[Bug 1960570] [NEW] Logrotate shouldn't restart conntrackd

Haw Loeung 1960570 at bugs.launchpad.net
Fri Feb 11 00:26:36 UTC 2022


Public bug reported:

Hi,

The current logrotate config is as follows:

===
/var/log/conntrackd-stats.log {
    weekly
    rotate 2
    missingok

    postrotate
        invoke-rc.d conntrackd restart > /dev/null
    endscript
}
===

This causes weekly restarts of conntrackd. Can we switch to using
copytruncate instead to prevent restarting conntrackd?

** Affects: conntrack-tools (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Hi,
  
  The current logrotate config is as follows:
  
  ===
  /var/log/conntrackd-stats.log {
-     weekly
-     rotate 2
-     missingok
+     weekly
+     rotate 2
+     missingok
  
-     postrotate
-         invoke-rc.d conntrackd restart > /dev/null
-     endscript 
+     postrotate
+         invoke-rc.d conntrackd restart > /dev/null
+     endscript
  }
  ===
  
- This causes daily restarts of conntrackd. Can we switch to using
+ This causes weekly restarts of conntrackd. Can we switch to using
  copytruncate instead to prevent restarting conntrackd?

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

Title:
  Logrotate shouldn't restart conntrackd

Status in conntrack-tools package in Ubuntu:
  New

Bug description:
  Hi,

  The current logrotate config is as follows:

  ===
  /var/log/conntrackd-stats.log {
      weekly
      rotate 2
      missingok

      postrotate
          invoke-rc.d conntrackd restart > /dev/null
      endscript
  }
  ===

  This causes weekly restarts of conntrackd. Can we switch to using
  copytruncate instead to prevent restarting conntrackd?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/conntrack-tools/+bug/1960570/+subscriptions




More information about the foundations-bugs mailing list