Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 118376

Summary: squid-2.5.11 /etc/init.d/squid script does not support "rotate"
Product: Gentoo Linux Reporter: Stefan Behte (RETIRED) <craig>
Component: New packagesAssignee: Gentoo Network Proxy Developers (OBSOLETE) <net-proxy+disabled>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Behte (RETIRED) gentoo-dev Security 2006-01-09 02:59:32 UTC
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 $?
> }
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-09 03:08:23 UTC
Hmmm, squid has logrotate use flag that installs logrotate script.
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-01-09 03:54:48 UTC
fixed in cvs.

note that rotate() will be present in your init script only if you have logrotate useflag disabled.