[Twisted-Python] log rotation

exarkun at divmod.com exarkun at divmod.com
Tue Sep 21 07:21:09 MDT 2004


On Tue, 21 Sep 2004 11:14:38 +0800, Tsai Li Ming <mailinglist at ltsai.com> wrote:
>Hi
> 
> 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




More information about the Twisted-Python mailing list