| View previous topic :: View next topic |
| Author |
Message |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Tue Oct 27, 2009 7:37 pm Post subject: How to create multiple icecasts |
|
|
Hi,
Right, I have tried this but cannot work it out, I want to have 6 different icecast scripts running.
How exactly do I go about this? I cannot find a guide on how to do it.
Regards |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Oct 27, 2009 9:12 pm Post subject: |
|
|
vague question, which script are you referring to and what does it do?
karl. |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Tue Oct 27, 2009 9:37 pm Post subject: |
|
|
just the main icecast script.
i have Version Icecast 2.3.2 installed.
I want to have 6 different icecast scripts running.
for 6 different things, all on different ports.
8010, 8020, 8030, 8040, 8050, 8060, for example. each port to have 1 stream each. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Oct 27, 2009 9:50 pm Post subject: |
|
|
so you are using a distribution init.d script to start icecast. So you you need to copied it and change the xml referenced within it.
karl. |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Tue Oct 27, 2009 11:06 pm Post subject: |
|
|
Could you be more specific when you say copied it?
How exactly is this done? |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Tue Oct 27, 2009 11:24 pm Post subject: |
|
|
Please let me know what parts i need to edit.
I have made a new xml called icecast3.xml, standard is just icecast.xml.
#! /bin/sh
### BEGIN INIT INFO
# Provides: icecast2
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the icecast audio streaming server daemon
### END INIT INFO
#
# icecast2
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Further modified by Keegan Quinn <ice@thebasement.org>
# for use with Icecast 2
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/icecast2
NAME=icecast2
DESC=icecast2
test -x $DAEMON || exit 0
# Defaults
CONFIGFILE="/etc/icecast2/icecast.xml"
CONFIGDEFAULTFILE="/etc/default/icecast2"
USERID=icecast2
GROUPID=icecast
ENABLE="false" |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 28, 2009 12:17 am Post subject: |
|
|
copying a file can be done by the cp command. Obviously you'll want to keep one as it is already, and as you want to run another instance of icecast then you'll have to copy the startup script so that the new one refers to the new xml. Check the upstart/init documentation on the configuration files used (including /etc/init.d/ and /etc/rcN.d/ directories). While those files are not provided by us, they don't look especially difficult.
karl. |
|
| Back to top |
|
 |
|