Commit dd873e4d authored by Ad Schellevis's avatar Ad Schellevis

(proxy) implement log rotate using standards

parent 70a0edbe
......@@ -28,13 +28,6 @@ parameters:
type:script_output
message:request proxy status
[logrotate]
command:/usr/local/sbin/squid -k rotate
parameters:
type:script
message:rotating proxy(squid) log
description:Rotate Proxy (squid) Logs
[fetchacls]
command:/usr/local/opnsense/scripts/proxy/fetchACLs.py
parameters:
......
rc.conf.d:/etc/rc.conf.d/squid
squid.conf:/usr/local/etc/squid/squid.conf
newsyslog.conf:/etc/newsyslog.conf.d/squid
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
{% if OPNsense.proxy.general.enabled|default("0") == "1" %}
/var/log/squid/access.log squid:squid 644 7 * @T00 ZB /var/run/squid/squid.pid 30
/var/log/squid/cache.log squid:squid 644 7 * @T00 ZB /var/run/squid/squid.pid 30
/var/log/squid/store.log squid:squid 644 7 * @T00 ZB /var/run/squid/squid.pid 30
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment