# IVS logs written by FileWave components. Installed to /etc/logrotate.d/ by
# /imaging/scripts/bin/setup_log_limits.sh. copytruncate because stunnel,
# Apache and the Python scripts keep these files open.
# /imaging/logs/django_requests.log is rotated by Django itself.
/var/log/stunnel.log
/var/log/stunnel-setup
/var/log/up-down-script
/var/log/fwadmin-dlog.log
{
	rotate 5
	weekly
	maxsize 50M
	missingok
	notifempty
	compress
	delaycompress
	copytruncate
}

/imaging/logs/filewave_imaging_server-error.log
/imaging/logs/filewave_imaging_server-access.log
/imaging/logs/filewave_imaging_server-request.log
/imaging/logs/netboot_error.log
/imaging/logs/netboot_access.log
/imaging/logs/fwadmin.log
{
	# /imaging/logs is www-data:dip 0775, logrotate refuses group writable
	# directories unless told which user and group to rotate as.
	su root dip
	rotate 5
	weekly
	maxsize 50M
	missingok
	notifempty
	compress
	delaycompress
	copytruncate
}
