<?xml version="1.0"?>
<!--
 ****************************  replay ****************************
 reboot.fm streamswitch2 configuration file for ices2 replay stream.
 streams ogg files to the local icecast server and is update 
 by a streamswitch.py based on information found in ics file/url.

-->
<ices>
	<background>0</background>
	<logpath>./logs/</logpath> <!-- where logs, etc go. -->
	<logfile>replay.log</logfile>
	<loglevel>4</loglevel> <!-- 1=error,2=warn,3=info,4=debug -->
	<logsize>2048</logsize>
	<consolelog>1</consolelog>
	<!-- <pidfile>/var/run/replay.pid</pidfile>  file to write process id to -->
	<pidfile>/tmp/replay.pid</pidfile> <!-- file to write process id to -->
	<stream>
		<name>reboot.fm</name>
		<genre>radio</genre>
		<description>reboot.fm stream</description>
<!-- here update would look like this:
     kill -USR1 `cat /tmp/replay.pid ` 
     with ./get_next returning the next playlist item -->
<!--
		<input>
			<module>playlist</module>
			<param name="type">script</param>
			<param name="program">./get_next</param>
		</input>
-->
<!-- here update would look like this:
     echo $pathtoogg > /dev/shm/reboot.fm_replay.m3u && kill -USR1 `cat /tmp/replay.pid ` -->
		<input>
			<module>playlist</module>
			<param name="type">basic</param> 
			<param name="file">reboot.fm_replay.m3u</param>
			<param name="random">0</param>
			<param name="once">1</param>
			<param name="restart-after-reread">1</param>
		</input>
		<runner>
            		<instance>
                		<shout>
		                    <hostname>localhost</hostname>
		                    <port>8000</port>
		                    <password>hack4me</password>
		                    <mount>/fallback.ogg</mount>
		                    <reconnectdelay>10</reconnectdelay>
		                    <reconnectattempts>5</reconnectattempts> 
		                </shout>
				<passthru>1</passthru>
			</instance>
		</runner>
	</stream>
</ices>
