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 

Creating multiple icecasts on one server

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



Joined: 03 Sep 2008
Posts: 42

PostPosted: Mon Aug 31, 2009 1:08 am    Post subject: Creating multiple icecasts on one server Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Aug 31, 2009 2:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
gazzagood



Joined: 03 Sep 2008
Posts: 42

PostPosted: Mon Aug 31, 2009 11:38 am    Post subject: Reply with quote

Hi,

Yeh, i have done this, but then how do i start the new config? icecast2.xml for instance?

Thanks
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Aug 31, 2009 1:25 pm    Post subject: Reply with quote

using the example I've already given then it would be

icecast -c /etc/icecast/icecast2.xml

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



Joined: 03 Sep 2008
Posts: 42

PostPosted: Mon Aug 31, 2009 1:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
jcr
Modérateur français
Modérateur français


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

PostPosted: Mon Aug 31, 2009 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
gazzagood



Joined: 03 Sep 2008
Posts: 42

PostPosted: Mon Aug 31, 2009 3:17 pm    Post subject: Reply with quote

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 Smile

Any ideas why it would say permission denied?
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


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

PostPosted: Mon Aug 31, 2009 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
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