#  _    _          ___           __ _     (R)
# | |  (_)_ _____ / __|___ _ _  / _(_)__ _
# | |__| \ V / -_) (__/ _ \ ' \|  _| / _` |
# |____|_|\_/\___|\___\___/_||_|_| |_\__, |
#                                    |___/
# Copyright (c) 2009-2025 LiveConfig GmbH
# ----------------------------------------------------------------------------
# logrotate(8) configuration for LiveConfig log files
# ----------------------------------------------------------------------------

/var/log/liveconfig/liveconfig.log {
	monthly
	missingok
	rotate 12
	compress
	delaycompress
	notifempty
	postrotate
		( [ -f /run/liveconfig/liveconfig.pid ] && /bin/kill -USR1 `cat /run/liveconfig/liveconfig.pid` 2>/dev/null ) || true
	endscript
}

/var/log/liveconfig/access.log {
	monthly
	missingok
	rotate 12
	compress
	delaycompress
	notifempty
	copytruncate
}

# <EOF>-----------------------------------------------------------------------
