Hi guys,
I recently set up ice cast.. for the most part it works great, but I'm trying to make it more automated..
I created n rc.d script and literally copied the rc.d script and associated xml file 10 times .. but its kind of funny, when I restart the jail only 6 of the channels come up..
I get a wired error in the logs that the ices instance fails to connect on localhost:8000 ..
guessing.. its trying to execute either to fast, or icecast is not fully running?
any idea how to slow it down..?
the other 9 are identical except search/replace rock with the name of the list..
I did a little script to launch all 10 services and that works fine..
its just on starting of the jail.. its always the same 6 channels that work and the same 4 that dont..
all of them are in rc.conf as expected..
thanks!
I recently set up ice cast.. for the most part it works great, but I'm trying to make it more automated..
I created n rc.d script and literally copied the rc.d script and associated xml file 10 times .. but its kind of funny, when I restart the jail only 6 of the channels come up..
I get a wired error in the logs that the ices instance fails to connect on localhost:8000 ..
guessing.. its trying to execute either to fast, or icecast is not fully running?
any idea how to slow it down..?
Code:
#!/bin/sh
#
# PROVIDE: rock
# REQUIRE: DAEMON icecast2
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="rock"
rcvar=rock_enable
command="/usr/local/bin/ices"
extra_commands="reload"
pidfile="/home/radio/rock.pid"
sig_reload="USR1"
load_rc_config "$name"
: ${rock_enable="NO"}
: ${rock_config="/home/radio/conf/rock.xml"}
: ${rock_flags="${rock_config}"}
: ${rock_user="radio"}
required_files="${rock_config}"
run_rc_command "$1"
the other 9 are identical except search/replace rock with the name of the list..
Code:
<?xml version="1.0"?>
<ices>
<background>1</background>
<logpath>/var/log/ices</logpath>
<logfile>rock.log</logfile>
<loglevel>1</loglevel>
<consolelog>0</consolelog>
<pidfile>/home/radio/rock.pid</pidfile>
<stream>
<metadata>
<name>rock</name>
<genre>rock</genre>
<description>Rock'en'roll ain't noise polution!</description>
</metadata>
<input>
<module>playlist</module>
<param name="type">basic</param>
<param name="file">/home/radio/conf/rock.txt</param>
<param name="random">1</param>
<param name="restart-after-reread">1</param>
<param name="once">0</param>
</input>
<instance>
<hostname>localhost</hostname>
<port>8000</port>
<password>pass</password>
<mount>/rock.ogg</mount>
<reconnectdelay>2</reconnectdelay>
<reconnectattempts>5</reconnectattempts>
<maxqueuelength>80</maxqueuelength>
<encode>
<nominal-bitrate>500000</nominal-bitrate>
<samplerate>44100</samplerate>
<channels>2</channels>
</encode>
</instance>
</stream>
</ices>
I did a little script to launch all 10 services and that works fine..
its just on starting of the jail.. its always the same 6 channels that work and the same 4 that dont..
all of them are in rc.conf as expected..
thanks!