[LUAU] Debian script question and whale song

Brian Chee chee at hawaii.edu
Tue Apr 3 18:10:02 PDT 2007


*NOTE: kudos to Jim Jolly and Jim B. at UH SOEST (ESF) for getting the
original server running, but it's behind their firewall.I'm asking this
question for a repeater outside the firewall and open to the public.

 

So I've been playing with a group that is doing some really neat
stuff..which brings me to a question for the group.

 

1.       If you feel like listening to whale song live.and you have a VORBIS
(ogg) capable audio player, you can point it at
http://icecast.ancl.hawaii.edu:8000/acc.ogg and listen live at 24khz (mono)

a.       The hydrophone is approx 300km off the coast of Oahu at a depth of
5000meters.

b.      It is powered via 600volts (DC) fed down a cable that lands at
Makaha on the island of Oahu

c.       Data is fed at gig speeds back over single mode fiber

d.      It is the first of many experiments that will be hung onto this
frame under the sea

e.      No it's NOT shaped like a pineapple nor are there sponges or
starfish on/in it yet. ;-)

2.       Now my question.

 

I'm using icecast as the streaming server and using netcat to ices2 to fee
the live stream off the cable and to the icecast server. It's all running on
Debian testing on the 2.4.27-2-386 kernel.

 

I've got icecast running at bootup just fine, but this script is necessary
to handle occasional drop outs of the stream to auto restart the livestream.

 

<start script that I'm trying to get to autostart at bootup>

 

#!/bin/sh

SOURCEHOST=128.171.xxx.yyy

SOURCEPORT=6202

CONFIGFILE=/etc/icecast2/ices-aco.xml

 

Run_ices()

{

                While :; do

                                nc $SOURCEHOST $SOURCEPORT | ices2
$CONFIGFILE

                                sleep 10

                done

}

 

run_ices&

 

<end of config file>

 

I've got this in the /etc/init.d directory named aco_ices and a symbolic
link is placed in /etc/rc3.d as S80aco_ices

 

So the problems are:

1.       The script doesn't run at startup

2.       The script isn't restarting the audio.

a.       The weird thing is that the script is working on a fedora machine
so I'm thinking it's a release issue?

 

*NOTE: I can't take credit for this, the Engineering Support Facility folks
got this working, I'm just hosting an external server that the public can
hit.

 

/brian chee

 

 

InfoWorld Media Group c/o

University of Hawaii SOEST (ANCL)

2525 Correa Road, HIG 500

Honolulu, HI 96822

Tel: 808-956-5797, Fax: 877-284-1934, Mobile: 808-372-7426

 




More information about the LUAU mailing list