| View previous topic :: View next topic |
| Author |
Message |
adabisnis
Joined: 31 Jul 2012 Posts: 14 Location: Indonesia
|
Posted: Wed Aug 08, 2012 1:44 am Post subject: How to make icecast start automaticly when i restart Centos |
|
|
How to make icecast start automaticly when i restart my VPS (operating system = Centos 5).
Thank you _________________ Klikhost.com |
|
| Back to top |
|
 |
DJ-Zath

Joined: 11 Feb 2009 Posts: 155 Location: Western Illinois - USA
|
Posted: Mon Aug 13, 2012 6:34 am Post subject: |
|
|
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-
 |
|
| Back to top |
|
 |
adabisnis
Joined: 31 Jul 2012 Posts: 14 Location: Indonesia
|
Posted: Mon Aug 13, 2012 6:59 am Post subject: |
|
|
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 |
|
 |
DJ-Zath

Joined: 11 Feb 2009 Posts: 155 Location: Western Illinois - USA
|
Posted: Tue Aug 14, 2012 4:34 am Post subject: |
|
|
you gotta have a .conf file somewhere
( 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.  _________________ -DjZ-
 |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Aug 14, 2012 12:58 pm Post subject: |
|
|
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 |
|
 |
adabisnis
Joined: 31 Jul 2012 Posts: 14 Location: Indonesia
|
Posted: Wed Aug 15, 2012 2:22 am Post subject: |
|
|
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 |
|
 |
DJ-Zath

Joined: 11 Feb 2009 Posts: 155 Location: Western Illinois - USA
|
Posted: Sat Sep 01, 2012 10:35 pm Post subject: |
|
|
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-
 |
|
| Back to top |
|
 |
|