mirror of
https://git.proxmox.com/git/pmg-api
synced 2025-10-04 19:04:53 +00:00
Add logrotate config for pmgproxy.log
to keep the log from growing without end. Rotate monthly and keep 12 logs, since the logs should not be too large (e.g. a productive instance, with ~20 users using the quarantine and some configuration changes amounts to 108M over 2.5 years) the logrotate snippet is placed in /etc/logrotate.d/pmg-api by dh_installlogrotate(1). Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
01c5b2318b
commit
243f0c0796
13
debian/pmg-api.logrotate
vendored
Normal file
13
debian/pmg-api.logrotate
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
/var/log/pmgproxy/pmgproxy.log {
|
||||
rotate 12
|
||||
monthly
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 640 www-data www-data
|
||||
sharedscripts
|
||||
postrotate
|
||||
/bin/systemctl try-reload-or-restart pmgproxy.service
|
||||
endscript
|
||||
}
|
Loading…
Reference in New Issue
Block a user