| View previous topic :: View next topic |
| Author |
Message |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Mon Aug 31, 2009 1:08 am Post subject: Creating multiple icecasts on one server |
|
|
How is this done?
Obviously you edit your config, save it under a new name, but how do you start the second config?
As /etc/icecast/icecast2 start is aimed at "icecast2"? thats the one config... how do you edit this to make a second one? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Aug 31, 2009 2:59 am Post subject: |
|
|
icecast does not really care where the xml is stored just as long as it can read the file. The filename is provided as a argument to the process so icecast -c /etc/icecast/mysecondconf.xml is valid
karl. |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Mon Aug 31, 2009 11:38 am Post subject: |
|
|
Hi,
Yeh, i have done this, but then how do i start the new config? icecast2.xml for instance?
Thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Aug 31, 2009 1:25 pm Post subject: |
|
|
using the example I've already given then it would be
icecast -c /etc/icecast/icecast2.xml
karl. |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Mon Aug 31, 2009 1:28 pm Post subject: |
|
|
Yes, but this is not a start command?
When i run /etc/init.d/icecast2 start i
it starts icecast.xml but not icecast2.xml? |
|
| Back to top |
|
 |
jcr Modérateur français

Joined: 14 Apr 2006 Posts: 544 Location: France, Auvergne
|
Posted: Mon Aug 31, 2009 1:49 pm Post subject: |
|
|
Hi, as /etc/init.d contains scripts, you can copy your icecast2 script to icecast_some_name and edit it to point to wanted config file.
Depending on your linux box, scripts may vary (debian style, redhat, opensuse...), but processing is similar.
Note that if you run multiple instances of icecast server, you must be careful choosing listening ports (or listening IPs in multi-ips servers) to prevent clashes between servers. _________________ Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Mon Aug 31, 2009 3:17 pm Post subject: |
|
|
Hi,
Thats more helpfull, thank you, however i get the following:
r26339:~# /etc/init.d/icecastdarrenh start
-bash: /etc/init.d/icecastdarrenh: Permission denied
r26339:~#
i edited the config location, and saved under icecastdarrenh just to test
Any ideas why it would say permission denied? |
|
| Back to top |
|
 |
jcr Modérateur français

Joined: 14 Apr 2006 Posts: 544 Location: France, Auvergne
|
Posted: Mon Aug 31, 2009 4:37 pm Post subject: |
|
|
Are you sure your script has goog permissions. Specially, tu should be owned by root and ahave 755 permissions.
so:
chown root:root /etc/init.d/icecastdarrenh
chmod 755 /etc/init.d/icecastdarrenh _________________ Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting |
|
| Back to top |
|
 |
|