hi
I compiled and install the Icecast server for streaming audio. It works well!
Question: I built a script to run the server and update the playlist of songs but I can not run "automatically" at boot. I do it manually.
I tried copying it to /etc/init.d with appropriate permissions rwx r-x r-x root owner and does not work.
I also tried to add line in /etc/init.d/local.sh
. /etc/init.d/radio.sh
does not work :(
I need to do to run this script at boot my system??
------------------------------------
Script (path /home/tux/radio.sh)
------------------------------------
#!/bin/sh
#
# Update playlist.txt
find /home/tux/icecast/ -name "*.ogg" > /home/tux/icecast/playlist.txt
# Streaming server Icecast
/opt/icecast/latest/bin/icecast -c /opt/icecast/latest/etc/icecast.xml -b
# With icecast playlist.
/opt/icecast/latest/bin/ices /opt/icecast/latest/etc/ices-playlist.xml &
# icecast with oss -live.
/opt/icecast/latest/bin/ices /opt/icecast/latest/etc/ices-oss.xml &
#
#icegenerator for mp3.
##export LD_LIBRARY_PATH=/opt/icecast/latest/lib:$LD_LIBRARY_PATH; /usr/local/bin/icegenerator -f /usr/local/etc/icegen1.cfg