You need to send a HUP to icecast. Here's my logrotate entry. Note
that the 3 logs are supposed to be on the same line, but my mail client
will wrap them.
/usr/local/var/log/icecast/access.log
/usr/local/var/log/icecast/error.log
/usr/local/var/log/icecast/playlist.log {
sharedscripts
postrotate
kill -HUP `cat /usr/local/share/icecast/icecast.pid`
endscript
}
In order to use the icecast.pid file, you need to enable that in your
icecast configuration.
Joel
Myke Place wrote:> Icecast 2.1.0
> Debian 3.0
>
> I'm trying to use logrotate to rotate my Icecast logs and I'm
running
> into some problems because it seems that Icecast won't write to the new
> log after rotation takes place. I'd really rather not do a full restart
> of Icecast everytime I rotate the log, since I don't want to disconnect
> a large number of listeners. Is there a signal that can be sent to
> Icecast to restart logging without disconnecting listeners and sources?
> Or, is there a method for rotating Icecast logs that is > logrotate?
>
> -mp
> _______________________________________________
> Icecast mailing list
> Icecast@xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast