mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
C-ICAP: Add logrotate to access.log and server.log (#275)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
c_icap:/etc/rc.conf.d/c_icap
|
||||
c-icap.conf:/usr/local/etc/c-icap/c-icap.conf
|
||||
newsyslog.conf:/etc/newsyslog.conf.d/c-icap
|
||||
virus_scan.conf:/usr/local/etc/c-icap/virus_scan.conf
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
|
||||
{% if helpers.exists('OPNsense.cicap.general.enabled') and OPNsense.cicap.general.enabled|default("0") == "1" %}
|
||||
{% if helpers.exists('OPNsense.cicap.general.enable_accesslog') and OPNsense.cicap.general.enable_accesslog == '1' %}
|
||||
/var/log/c-icap/access.log c_icap:c_icap 644 7 * @T00 ZB /var/run/c-icap/c-icap.pid
|
||||
{% endif %}
|
||||
/var/log/c-icap/server.log c_icap:c_icap 644 7 * @T00 ZB /var/run/c-icap/c-icap.pid
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user