ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
Re: [Zope] Re: Zope & logrotate
by Paul Winkler other posts by this author
Apr 22 2004 6:12PM messages near this date
Re: [Zope] Re: Zope & logrotate | Re: [Zope] Re: Zope & logrotate
On Thu, Apr 22, 2004 at 01:16:10PM -0400, Jake wrote:
>  Bobb said:
>  >> > Sure you can, I do it every night with a cron job.
>  >> >
>  >> > The only thing to be careful of is that you want a postrotate
>  >> > script that tells zope to reopen the log file.
>  >> > See doc/SIGNALS.txt to learn how to tell zope that,
>  >> > and the logrotate man page to learn how about postrotate.
>  
>  I read this...
>  http://cvs.zope.org/Zope/doc/SIGNALS.txt?rev=1.3.44.1&content-type=text/vnd.viewcvs-markup
>  
>  But could you send an example, currently I have:
>  
>  	postrotate
>  	  /usr/bin/kill -USR2 `cat /usr/local/zope/var/Z2.pid`
>  	endscript
>  
>  Which I think is dead wrong.

I don't think that's a valid option to kill, at least not on linux.
This is the logrotate conf file that I have:

### begin #######################
compress

/www/logs/z_access_log/current /www/logs/z_big_m_log/current /www/logs/z_event_log/current {

           rotate 20 
           size=100k
           # run the postrotate command only once, not for each log...
           sharedscripts
           postrotate
               # see doc/SIGNALS.txt in the zope source distribution
               /bin/kill -s SIGUSR2 `cat /zope/InstanceHome/var/Z2.pid` 
           endscript
}
##### end ###################

-- 

Paul Winkler
http://www.slinkp.com

_______________________________________________
Zope maillist  -  Zope@[...].org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
Thread:
John Poltorak
Bobb
Jake
Paul Winkler
Jake
Dieter Maurer
John Poltorak
Paolo Dina
Paul Winkler
Nate Aune

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved