diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-03-05 09:40:32 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-03-05 09:40:32 +0100 |
commit | 2c94c3ec72a559de405b29b4399250db3085717e (patch) | |
tree | 6b02be6b63c7af09b6ae0208338e7e1a4dc666d9 | |
parent | c06861440cd21ff7c668b35ed1039f5fac4101b9 (diff) | |
download | vyos-1x-2c94c3ec72a559de405b29b4399250db3085717e.tar.gz vyos-1x-2c94c3ec72a559de405b29b4399250db3085717e.zip |
conntrackd: T4259: prevent startup of multiple daemon instances
-rw-r--r-- | debian/vyos-1x.preinst | 2 | ||||
-rw-r--r-- | src/etc/logrotate.d/conntrackd | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/debian/vyos-1x.preinst b/debian/vyos-1x.preinst index 45440bf64..71750b3a1 100644 --- a/debian/vyos-1x.preinst +++ b/debian/vyos-1x.preinst @@ -1,4 +1,4 @@ dpkg-divert --package vyos-1x --add --rename /etc/securetty dpkg-divert --package vyos-1x --add --rename /etc/security/capability.conf dpkg-divert --package vyos-1x --add --rename /lib/systemd/system/lcdproc.service - +dpkg-divert --package vyos-1x --add --rename /etc/logrotate.d/conntrackd diff --git a/src/etc/logrotate.d/conntrackd b/src/etc/logrotate.d/conntrackd new file mode 100644 index 000000000..b0b09dec1 --- /dev/null +++ b/src/etc/logrotate.d/conntrackd @@ -0,0 +1,9 @@ +/var/log/conntrackd-stats.log { + weekly + rotate 2 + missingok + + postrotate + systemctl restart conntrackd.service > /dev/null + endscript +} |