Re: [Twisted-Python] log rotation
On Tue, 21 Sep 2004 13:21:09 GMT exarkun <exarkun@divmod.com> wrote:
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?
In my case its the simple fact that logrotate is responsible for all log rotation for every system on the network. Making twisted-based apps a special case which I then have to tell everybody about, remind them repeatedly etc, is not particularly welcome. -- J C Lawrence ---------(*) Satan, oscillate my metallic sonatas. claw@kanga.nu He lived as a devil, eh? http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live.
J C Lawrence wrote:
On Tue, 21 Sep 2004 13:21:09 GMT exarkun <exarkun@divmod.com> wrote:
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?
In my case its the simple fact that logrotate is responsible for all log rotation for every system on the network. Making twisted-based apps a special case which I then have to tell everybody about, remind them repeatedly etc, is not particularly welcome.
Same for me too. However, how do I do that in logrotate? I notice that if I send a SIGUSR1 to the twisted process, it will rotate the log file itself. /var/log/server.log { postrotate /bin/kill -SIGUSR1 `cat /var/run/server.pid 2>/dev/null` 2> /dev/null || true endscript } -Liming
participants (2)
-
J C Lawrence
-
Tsai Li Ming