File c-icap.logrotate of Package c-icap
/var/log/c-icap/*.log {
compress
dateext
maxage 365
rotate 99
size=+2048k
notifempty
missingok
copytruncate
create 644 c-icap c-icap
su c-icap c-icap
sharedscripts
postrotate
ICAP_SOCKET=$(grep -i ^CommandsSocket /etc/c-icap/c-icap.conf | cut -d " " -f2); \
test -S "$ICAP_SOCKET" && echo -n 'relog' > "$ICAP_SOCKET"
endscript
}