[arm-allstar] Ezstream and NPTEE
Lee Woldanski
ve7fet at tparc.org
Thu Feb 3 15:19:50 EST 2022
So, I have a situation where periodically, ezstream barfs and throws the
load average on the machine through the roof, until I kill the processes.
I am using nptee to create two pipes in rpt.conf:
outstreamcmd=/usr/local/bin/nptee,broadcastify,karc
Then, I am starting two streamers, one to Broadcastify, and another one to
a club Icecast server, under screen (line breaks are probably going to mess
this up...):
#! /bin/sh
# Start the stream to Broadcastify
screen -dmS broadcastify su -c - streamer 'lame --preset cbr 16 -r -m m -s
8 --scale 1.1 --bitwidth 16 /tmp/outsound/broadcastify - - 2>/tmp/stream.s
tatus | ezstream -qvc /etc/ezstream.xml'
sleep 1
# Start the stream to Club
screen -dmS karc su -c - streamer 'lame --preset cbr 16 -r -m m -s 8
--scale 1.1 --bitwidth 16 /tmp/outsound/karc - - 2>/tmp/stream.status |
ezstream
-qvc /etc/ezstream-club.xml'
When it works, it works fine. I do see ezstream periodically restarting the
streams when I look at the screen console.
However, once in a while, ezstream dies, and fills the consoles with
repeating:
ezstream: Streaming from standard input
And the load average goes through the roof.
I have to log in, go in to the screen sessions, ctrl-c to stop the streams,
then killall ezstream and lame, and then restart the streams again.
I know there was a cron job to watch ezstream for this with a single
instance running, but what is the best way to watch it when there are
multiple instances running?
Thanks.
Lee
--
Lee Woldanski, AScT
VE7FET
More information about the ARM-allstar
mailing list