Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118376 - squid-2.5.11 /etc/init.d/squid script does not support "rotate"
Summary: squid-2.5.11 /etc/init.d/squid script does not support "rotate"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 02:59 UTC by Stefan Behte (RETIRED)
Modified: 2006-01-09 03:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.