SliTaz SliTaz Forum

You are not logged in.

#1 2014-04-19 18:24:01

rerivero
Member
Registered: 2012-06-18
Posts: 235

run script at boot system

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 sad

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

#2 2014-04-19 19:05:31

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: run script at boot system

Update RUN_SCRIPTS in /etc/rcS.conf of move your script into /etc/init.d/local.sh

Offline

#3 2014-04-19 21:25:13

rerivero
Member
Registered: 2012-06-18
Posts: 235

Re: run script at boot system

@Bellard

not working at boot...

Offline

#4 2014-04-20 11:00:09

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: run script at boot system

copy the script from line 3 straight into local.sh

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]