[Twisted-Python] Re: log rotation

Tsai Li Ming mailinglist at ltsai.com
Tue Sep 21 10:42:47 EDT 2004

exarkun at divmod.com wrote:
> On Tue, 21 Sep 2004 11:14:38 +0800, Tsai Li Ming <mailinglist at ltsai.com> wrote:
>>Has anyone used logrotate or simple use a cron job to send a SIGUSR1 to 
>>the process?
>>If I understand the twistd man page properly, the log file will be 
>>rotated on SIGUSR1, therefore I'm wont be able to use logrotate to do 
>>the rotation?
>   logrotate should rotate twistd logfiles just fine.  It shuts down a process, moves its log files around, then restarts it.
>   Why you'd _want_ to rotate them this way, instead of just letting them automatically be rotated by twistd (which they will be), I dunno.  Is there some feature logrotate has that twistd lacks that you're interested in?
>   Jp

When you say twisted will automatically rotate the log files, how does 
it do that? Will it automatically rotate the log files periodically?


More information about the Twisted-Python mailing list