Some of you may have seen my post to the vorbis list regarding the new Virgin Radio streams using Ogg Vorbis, ices2 and icecast2. Anyway, I have a couple of techy enquiries about the icecast2 server. Firstly, I want to rotate the icecast2 logs at midnight (i.e. create a new access.log file for each day). Normally I would expect to be able to move the existing log file and then send a killall -HUP to get the service to start logging in a fresh access.log file. This is what I do with Shoutcast. However, killall -HUP doesn't appear to be working for me, so I have had to resort to the following: <p>#!/bin/sh DATE=`/bin/date +%Y%m%d --date=yesterday` /bin/mv /usr/local/icecast2/logs/access.log /usr/local/icecast2/logs/access_$DATE.log /usr/bin/killall -KILL icecast /usr/local/bin/icecast -c /usr/local/icecast2/conf/icecast.xml & <p>This does the job, but kicks off any existing listeners at midnight (not ideal!) Has anyone managed to do this a better way? Secondly, and I've already mentioned this in my post to the vorbis list (so apologies for the double posting). Has anyone got ices2 and icecast2 to post information to a yp server. I can't get it to work and http://www.oddsock.org/icecast2yp/test/FAQ suggests that it shouldn't at least at the moment. Anyone know for certain? Thanks David David Jones Head of IT, Virgin Radio t +44 20 7432 3346 f +44 20 7432 3456 www.smg.plc.uk * www.virginradio.co.uk --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request at xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
At 07:33 PM 7/1/2003 +0100, you wrote:>Secondly, and I've already mentioned this in my post to the vorbis list (so >apologies for the double posting). Has anyone got ices2 and icecast2 to post >information to a yp server. I can't get it to work and >http://www.oddsock.org/icecast2yp/test/FAQ suggests that it shouldn't at >least at the moment. Anyone know for certain?you can list with ices2 no problem, although it may be that some of the audio info (bitrate/samplerate/channels) might be misreported...this is usually the case if you are not specifying them in the config file (as would be the case if you were not reencoding)....Are you getting any particular errors ? If so, look in your icecast2 error.log for messages and post them here if you don't know what they mean... oddsock <p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request at xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> Firstly, I want to rotate the icecast2 logs at midnight (i.e. create a new > access.log file for each day). Normally I would expect to be able to move > the existing log file and then send a killall -HUP to get the service to > start logging in a fresh access.log file. This is what I do with Shoutcast.Hrmmm.. Yes, this wouldn't work currently. It should be very easy to make it work, however. Just find (in src/sighandler.c) where it says /* reopen logfiles (TODO: we don't do this currently) */ and add calls to log_reopen(errorlog); log_reopen(accesslog); Oh, and then actually implement log_reopen(), since it's currently an empty function. That might be marginally harder... But yet - you're right that it doesn't work, and it definately SHOULD work. Mike --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request at xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.