what does "sharedscripts" mean in logrotate please
hi all,
ive done a logrotate for squid logs, it is
cat /etc/logrotate.d/squid
/usr/local/squid/var/logs/*.log {
monthly
rotate 4
compress
delaycompress
missingok
dateext
dateformat -%d%m%Y
su root root
}
now after the rotation i want to run this
"/usr/local/squid/sbin/squid -k reconfigure", this is so it restarts squid after the logs have been rotated
so to do this would i do this
postrotate
/usr/local/squid/sbin/squid -k reconfigure
endscript
thanks,
rob