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 

How to make icecast start automaticly when i restart Centos

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



Joined: 31 Jul 2012
Posts: 14
Location: Indonesia

PostPosted: Wed Aug 08, 2012 1:44 am    Post subject: How to make icecast start automaticly when i restart Centos Reply with quote

How to make icecast start automaticly when i restart my VPS (operating system = Centos 5).

Thank you
_________________
Klikhost.com
Back to top
View user's profile Send private message Yahoo Messenger
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Mon Aug 13, 2012 6:34 am    Post subject: Reply with quote

did you compile it or install it using yum?

also, are you root (that is to be able to edit the rc files n /etc)

you can simply put the following:

/path/to/icecast -b -c /path/to/icecast.conf &

(example: /usr/local/sbin/icecast -b -c /user/local/include/icecast.conf & )

into the proper rc file (at the bottom/end) for that particular runlevel (please check your documentation on which runlevel RC file to use as this differs from system to system and user to user)

--OR--

if you used yum, you can use /sbin/chkconfig

(example: chkconfig --add icecast )

note: use the proper name as listed in yum..
(you can use --list to get the name from yum )

I hope this helps!
_________________
-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
adabisnis



Joined: 31 Jul 2012
Posts: 14
Location: Indonesia

PostPosted: Mon Aug 13, 2012 6:59 am    Post subject: Reply with quote

i use Icecast 2.3.3-kh2 by compile it. i have root password.

no icecast.conf, but icecast.xml
_________________
Klikhost.com
Back to top
View user's profile Send private message Yahoo Messenger
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Tue Aug 14, 2012 4:34 am    Post subject: Reply with quote

you gotta have a .conf file somewhere Smile

( this assumes that you DID 'set up' your Icecast server? )

try typing at the prompt:

locate icecast.conf

perhaps Karl can help, here.. but for me, I found it in

/usr/local/include/icecast/icecast.conf

but I'm also running a different flavor of unix than you are. Smile
_________________
-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Aug 14, 2012 12:58 pm    Post subject: Reply with quote

The icecast.xml file is fine, conf is often used as the extension for ices0 so lets not confuse the two.

Pre-packaged installs will have the necessary boot up (rc) scripts for the distribution, so you could use the boot up script from a standard centos 2.3.2 install for example, or maybe just throw the call to start icecast from the /etc/rc.local file with something like

/path/to/icecast -b -c /etc/icecast.xml

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



Joined: 31 Jul 2012
Posts: 14
Location: Indonesia

PostPosted: Wed Aug 15, 2012 2:22 am    Post subject: Reply with quote

Hello,

I just add this code to /etc/rc.local :

Quote:
/usr/local/bin/icecast -b -c /usr/local/etc/icecast.xml


And its work for me.

Thank you KarlH and DJ-Zath
_________________
Klikhost.com


Last edited by adabisnis on Tue Sep 04, 2012 4:45 am; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Sat Sep 01, 2012 10:35 pm    Post subject: Reply with quote

sorry about that KarlH!

the error was that *I* renamed my icecast.xml to icecast.conf and then had it load that way.. but then forgot I did that (as I did this from years ago) and just imported the old XML and scripts and just loaded them onto the new compile)

I apologize to anyone whom I may have confused here..
_________________
-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
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