Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Icecast Fedora Core 4 VPS

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Tue Feb 13, 2007 3:34 pm    Post subject: Icecast Fedora Core 4 VPS Reply with quote

I am having a problem with the init script starting icecast daemon on a Fedora Core 4 VPS. Everything is working fine with the server when I manually start it with "service icecast start", but the init script will not start it at all. I am a bit of a linux noob, but I had people who were helping me over IRC, and we couldn't figure out why it was not working.

Code:
#!/bin/sh
#
# icecast      This shell script takes care of starting and stopping
#              the icecast multimedia streaming systen.
#
# chkconfig: - 85 15
# description: icecast is a multimedia streaming daemon. It is used to \
#              relay and offer multimedia streaming content.
# processname: icecast
# pidfile: /var/run/icecast/icecast.pid
# config: /etc/icecast.xml

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/bin/icecast ] || exit 0

# See how we were called.
case "$1" in
  start)
   # Start daemon.
   echo -n $"Starting icecast streaming daemon: "
   daemon "/usr/bin/icecast -b -c /etc/icecast.xml > /dev/null"
   RETVAL=$?
   echo
   [ $RETVAL -eq 0 ] && touch /var/lock/subsys/icecast
   ;;
  stop)
   # Stop daemon.
   echo -n $"Shutting down icecast streaming daemon: "
   killproc icecast
   RETVAL=$?
   echo
   [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/icecast
   ;;
  status)
   status icecast
   RETVAL=$?
   ;;
  restart)
   $0 stop
   $0 start
   ;;
  reload)
   echo -n $"Reloading icecast: "
   killproc icecast -HUP
   RETVAL=$?
   echo
   ;;
  condrestart)
        [ -f /var/lock/subsys/icecast ] && restart || :
        ;;
  *)
   echo $"Usage: $0 {start|stop|status|restart|reload}"
   RETVAL=1
   ;;
esac

exit $RETVAL


I did the chkconfig --add icecast command and made the script executable, but it will not start icecast. As far as I can tell, it doesn't look like fedora is even trying to start icecast.


Also, admins, I misspelled my email address, please delete the Anticept account.


Last edited by Anonymous on Thu Feb 15, 2007 12:56 am; edited 1 time in total
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Feb 13, 2007 3:56 pm    Post subject: Reply with quote

Make sure the symlinks exist for the script /etc/initi.d/rcN.d (where N is the default runlevel). I'm guessing the files would be named S85icecast and K15icecast

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Tue Feb 13, 2007 4:59 pm    Post subject: Reply with quote

K15icecast exists in all 6 rcN.d runlevels, nothing found for S85icecast.
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Feb 13, 2007 5:59 pm    Post subject: Reply with quote

The S* files are used to start the service, K* files for Killing the service. If the S symlink is missing then the init script won't be starting the service, the number just helps to determine the order in which the services start up.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Tue Feb 13, 2007 6:53 pm    Post subject: Reply with quote

Again, noob here. I'll make the symlinks now, but if you could, incase it does not work, please list instructions on their creation :3

I pointed the symlinks to the script with
Code:
ln -s ../init.d/icecast S85icecast


in the rc1.d, 2, 3, 4, and 5 runtime levels.

And it still will not autostart.
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Feb 14, 2007 6:47 pm    Post subject: Reply with quote

use:
chkconfig --level 345 icecast on
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Anonymous
Guest





PostPosted: Thu Feb 15, 2007 1:00 am    Post subject: Reply with quote

I haven't had the chance yet to restart the vps to see if it autostarts now, but another two new problems have popped up.

First, my VPS tcpsndbuf is limited to 1.7 megs. Icecast likes to eat that buffer alive. Is this just a limitation in streaming itself, a bug, or just my really bad ability to administrate? Embarassed

Secondly, if just one listener connects to icecast and I have a fallback mount pointing to a file, the tcpsndbuf fills instantly and limits the ability for my connection to send data. Again, a bug, or just my really bad ability to administrate?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Feb 15, 2007 2:26 am    Post subject: Reply with quote

Whenever the sender is sending more data than the reader can read then the tcp send buffer will fill up. For icecast live connections, the rate is regulated by the source client/relay and so should be ok if the bitrate is possible. For file transfer the reader is regulating the transfer so the tcp send buffer will fill up.

1.7Meg should be fine for the upper limit, but I'm not sure why you think that the tcp send buffer filling up is a problem. It is expected to fill up if the data is not getting through. Any lasting problem will cause the listener to drop off the end of the queue.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Thu Feb 15, 2007 2:32 am    Post subject: Reply with quote

Well, when the buffer fills completely, the stream lags horribly for everyone. I am trying to figure out why this is occuring, I am using 128 kbps streams. Should I think about reducing this? Also, would reducing the queue size to a small number (say a half second worth of data at 128kbps) help this?

Or, could it be that a VPS does not make a good server? I am now thinking that maybe my host is not providing a fast enough connection to provide for the other VM's hosted on the same machine, as well as all the servers in the datacenter.
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Feb 15, 2007 3:06 am    Post subject: Reply with quote

I've heard that some VPS setups perform badly, things like process scheduling/usage not working out correctly, but whether this is an issue here I don't know. There is a question of the weighting as well, what is also being done that you are not aware of.

If 1 listener is having problems then that should in no way affect other listeners on the same stream. The icecast queue size is a max limit and should be plenty to allow for listeners to lag a little, it needs to be at least burst size and then you want to add some more. Say 262144 for upto 16 seconds of lag (this is in addition to the 1.7Megs of send buffer).

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Thu Feb 15, 2007 7:41 am    Post subject: Reply with quote

Ok, did the chkconfig --level 345 icecast on, then rebooted, and it did not start.

Also, here is something else about the tcp buffer. When a source connects, tcprcvbuf spikes to about 200kB and stays there. When they disconnect, it drops back down to a few kB.


I think this VPS is just a crappy one for stream hosting. It came with all kinds of crap, like plesk 8 and virtuozzo, I don't think the host configured it for anything more than web hosting.
Back to top
Anonymous
Guest





PostPosted: Sat Feb 17, 2007 10:09 am    Post subject: Reply with quote

OK I dumped the VPS and got a dedicated server. It seems that host had the VPS configured for webhosting only.

Everything is working flawlessly on the dedicated. Thanks guys!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber