Hello! Someone @ work asked me, why the squid init script does not support "rotate" and asked me to add it. So this is just a little enhancement for /etc/init.d/squid, so that you can do: /etc/init.d/squid rotate I thought maybe you also want it. 4c4 < # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/files/squid.initd,v 1.1 2005/07/16 10:14:17 mrness Exp $ --- > # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/files/squid.initd,v 1.2 2006/01/09 11:48:17 -craig- Exp $ 6c6 < opts="${opts} reload" --- > opts="${opts} reload rotate" 89a90,96 > > rotate() { > checkconfig || return 1 > ebegin "Rotating logs" > /usr/sbin/squid -k rotate > eend $? > }
Hmmm, squid has logrotate use flag that installs logrotate script.
fixed in cvs. note that rotate() will be present in your init script only if you have logrotate useflag disabled.