You are not logged in.
Pages: 1
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
Offline
Update RUN_SCRIPTS in /etc/rcS.conf of move your script into /etc/init.d/local.sh
Offline
@Bellard
not working at boot...
Offline
copy the script from line 3 straight into local.sh
Offline
Pages: 1
[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]