sandalian.com

Catatan Bapak Muda Berbahaya

Multiple Shoutcast Streams on A Single Machine

It’s very easy to set multiple shoutcast streams/servers on a single server. In this example I’m using Centos.

All you need to do is copy sc_serv binary into 3 different files (ie: sc_serv1, sc_serv2, sc_serv3) and create 3 different configuration files (ie: sc_serv1.conf, sc_serv2.conf, sc_serv3.conf).

Don’t forget to specify different ports for the three configuration files.

I put them into /usr/local/sbin/ directory:

[root@myserver sbin]# ls | grep -v log
sc_serv1
sc_serv1.conf
sc_serv2
sc_serv2.conf
sc_serv3
sc_serv3.conf


Then edit /etc/rc.d/rc.local to load those 3 servers everytime the machine is started, don’t forget to add & after every lines.

Without & mark, only first sc_serv will be executed.

[root@myserver sbin]# tail /etc/rc.d/rc.local 
# jalankan shoutcast server
/usr/local/sbin/sc_serv1 /usr/local/sbin/sc_serv1.conf &
/usr/local/sbin/sc_serv2 /usr/local/sbin/sc_serv2.conf &
/usr/local/sbin/sc_serv3 /usr/local/sbin/sc_serv3.conf &

You should now have 3 streams on a single machine.

Next Post

Previous Post

1 Comment

  1. turtlix 27/05/2009

    Nice article, can’t wait for video stream…
    šŸ˜€
    Supermangat!

Leave a Reply

© 2022 sandalian.com

Theme by Anders Norén