Having problems with starting ezstream in rc.local script December 31, 2012 03:06PM |
Registered: 11 years ago Posts: 38 |
/usr/bin/ezstream -c /home/maihoa/jazz_mp3.xml &This works just fine and I get a single line on stdout such as this for each track as it streams it:
ezstream: Streaming ``Lu Watters Yerba Buena Jazz BaThe San Francisco Style Good T1946Track 10 Lu Watters Yerba Bu - Ory's Creole Trombone''I can listen to the stream on another computer and I can even play the stream on the server itself using mpg321 with no problems. but when I put this command in /etc/rc.local file I get something like this as soon as it starts:
Starting S.M.A.R.T. daemon: smartd. Making sure that Logitech Media Server is not running first: No process in pidfile '/var/run/logitechmediaserver.pid' found running; none killed. Starting Logitech Media Server. Turning on White LED ezstream: Connected to http://192.168.1.180:8000/jazz ezstream: Streaming ``The Bay City Jazz Band - Snake Rag'' Stopping watchdog keepalive daemon.... Starting watchdog daemon.... ezstream: Streaming ``Lu Watters Yerba Buena Jazz BaThe San Francisco Style Good T1946Track 12 Lu Watters Yerba Bu - Canal Street Blues'' ezstream: Streaming ``Bob Scobey's Frisco Band - St James Infirmary'' ezstream: Streaming ``Lu Watters Yerba Buena Jazz BaVol. 2 WATTERS ORIGINALS AND R1946Track 01 Lu Watters Yerba Bu - Annie Street Rock'' OpenMediaVault 0.4.10 (Fedaykin) GoFlexHome ttyS0 Copyright (C) 2009-2012 by Volker Theile. All rights reserved. To manage the system visit the OpenMediaVault web administration interface via a web browser on: eth0: 192.168.1.180 For more information regarding this appliance, please visit the web site: http://www.openmediavault.org GoFlexHome login: ezstream: Streaming ``Kid Ory's Creole Jazz Band - Tin Roof Blues'' ezstream: Streaming ``Lu Watters Yerba Buena Jazz BaThe San Francisco Style Good T1946Track 07 Lu Watters Yerba Bu - Ain't Gonna Give Nobody None OLu Watters Yerba Buena Jazz BaThe San Francisco Style Good T1946Track 07 Lu Watters Yerba Bu'' ezstream: Streaming ``Lu Watters' Yerba Buena Jazz BGood Time Jazz - Riverside Blues'' ezstream: Streaming ``Kid Ory's Creole Jazz Band - A Closer Walk With Thee'' ezstream: Streaming ``The Bay City Jazz Band - How'm I Gonna Do It (If I Don'The Bay City Jazz Band'' ezstream: Streaming ``Bob Scobey's Frisco Band - Angry'' ezstream: Streaming ``Lu Watters' Yerba Buena Jazz BGood Time Jazz - Tiger Rag'' ezstream: Streaming ``Bob Scobeys Frisco Band - Some Of These Days'' ezstream: Streaming ``Lu Watters Yerba Buena Jazz BaThe San Francisco Style Good T1946Track 05 Lu Watters Yerba Bu - Pineapple Rag'' ezstream: Streaming ``Lu Watters Yerba Buena Jazz BaVol. 2 WATTERS ORIGINALS AND R1946Track 09 Lu Watters Yerba Bu - Harlem Rag'' ezstream: Streaming ``The Bay City Jazz Band - Yerba Buena Blues'' ezstream: Streaming ``The Bay City Jazz Band - Potato Head'' ezstream: Streaming ``Lu Watters Yerba Buena Jazz BaVol. 2 WATTERS ORIGINALS AND R1946Track 08 Lu Watters Yerba Bu - Down Home Rag''It repeats this over and over continiously as if it's trying to stream all the tracks at once instead of one at a time. The CPU time for ezstream is usually very low around .3% (per top) but when I try to run it from rc.local the CPU time is up around 35% to 50%. It appears to be working if I tune into it from another computer. But if I try to play the stream on the server using mpg321, mpg abouts after a few seconds and refuses to play.
cat /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. #echo "checking if icecast is running" #ps aux |grep icecast2 #autostart minidlna #if [ "$(runlevel)" = "N 2" ]; then #echo "Starting minidlna ........" #minidlna -R -f /etc/minidlna.conf #fi # autostart ezstream if [ "$(runlevel)" = "N 2" ]; then #echo "Starting ezstream ........" /usr/bin/ezstream -c /home/maihoa/jazz_mp3.xml & # /usr/bin/ezstream -q -c /home/maihoa/jazz_mp3.xml > /dev/null 2>&1 & fi # Turn on the white LED echo "Turning on White LED" if [ -d /sys/class/leds/status:white:misc ]; then echo default-on > /sys/class/leds/status:white:misc/trigger fi exit 0
Re: Having problems with starting ezstream in rc.local script January 01, 2013 01:35AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Having problems with starting ezstream in rc.local script January 03, 2013 11:25AM |
Registered: 11 years ago Posts: 38 |
# autostart ezstream if [ "$(pidof ezstream)" > 0 ]; then echo "ezstream is running already ........" else if [ "$(pidof icecast2)" > 0 ]; then echo "Starting ezstream ..........." at -m -f /home/maihoa/jazz.sh now + 2 min fi fi
Re: Having problems with starting ezstream in rc.local script January 04, 2013 12:55AM |
Admin Registered: 13 years ago Posts: 18,821 |
Ethan
Re: Having problems with starting ezstream in rc.local script January 22, 2014 10:54PM |
icha
Re: Having problems with starting ezstream in rc.local script April 06, 2014 11:35AM |