From 2dfd0c0706b3de34b5683b0da7a1a0af8b80ea86 Mon Sep 17 00:00:00 2001 From: Eric Morino Date: Mon, 11 Oct 2021 11:03:28 +0200 Subject: [PATCH] Add squid logrotate --- lxc-php/templates/mailname.j2 | 1 + squid/files/logrotate_squid | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lxc-php/templates/mailname.j2 create mode 100644 squid/files/logrotate_squid diff --git a/lxc-php/templates/mailname.j2 b/lxc-php/templates/mailname.j2 new file mode 100644 index 00000000..e374dd45 --- /dev/null +++ b/lxc-php/templates/mailname.j2 @@ -0,0 +1 @@ +{{ansible_fqdn}} diff --git a/squid/files/logrotate_squid b/squid/files/logrotate_squid new file mode 100644 index 00000000..95946eb9 --- /dev/null +++ b/squid/files/logrotate_squid @@ -0,0 +1,11 @@ +/var/log/squid3/*.log { + monthly + compress + rotate 12 + missingok + create 640 proxy adm + sharedscripts + postrotate + test ! -e /var/run/squid3.pid || /usr/sbin/squid3 -k rotate + endscript +} \ No newline at end of file