Old 6th January 2010, 22:50   #1
mariuscotan
Junior Member
 
Join Date: Jan 2010
Posts: 6
autostart for shoutcast on centos 5.3

Hello,

can someone tell me how to set up shoutcast to start automatically when server is started?

I'm using centos 5.3.

In which folder is better to install shoutcast?


Regards
mariuscotan is offline   Reply With Quote
Old 7th January 2010, 01:18   #2
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
folder does not matter, as far as I am aware, though I have never used CentOS.

Having said that, I believe the easiest way to get this done for you is via chkconfig. I believe that is what CentOS uses ...

http://linuxcommand.org/man_pages/chkconfig8.html

You could also accomplish this by creating a cron job entry.
fc*uk is offline   Reply With Quote
Old 7th January 2010, 14:59   #3
mariuscotan
Junior Member
 
Join Date: Jan 2010
Posts: 6
It is something like here: http://forums.winamp.com/showthread.php?postid=2387398

but i think is an error, because it is not working for me.

Any idea?
mariuscotan is offline   Reply With Quote
Old 8th January 2010, 00:10   #4
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
No, I don't believe that one is going to work for Cent.

Try

code:
Create a shoutcast daemon called shoutcastd in the home directory.
[Content of shoutcastd file]
#!/bin/bash

./sc_serv sc_serv.conf >/dev/null 2>&1 &
[End of shoutcastd file]

bash% chmod +x shoutcastd
bash% ./shoutcastd



Yes, it is similar to what you linked, but it is a little different.
fc*uk is offline   Reply With Quote
Old 9th January 2010, 10:44   #5
mariuscotan
Junior Member
 
Join Date: Jan 2010
Posts: 6
Quote:
Originally posted by fc*uk
No, I don't believe that one is going to work for Cent.

Try

code:
Create a shoutcast daemon called shoutcastd in the home directory.
[Content of shoutcastd file]
#!/bin/bash

./sc_serv sc_serv.conf >/dev/null 2>&1 &
[End of shoutcastd file]

bash% chmod +x shoutcastd
bash% ./shoutcastd



Yes, it is similar to what you linked, but it is a little different.
It's not working.

My shoutcast is installed under: ./home/shoutcast

i have created shoutcastd file with the content specified above, and placed this file in ./etc/init.d/ , but is not working.

What i'm doing wrong?

Thanks
mariuscotan is offline   Reply With Quote
Old 12th January 2010, 19:58   #6
mariuscotan
Junior Member
 
Join Date: Jan 2010
Posts: 6
Quote:
Originally posted by mariuscotan
It's not working.

My shoutcast is installed under: ./home/shoutcast

i have created shoutcastd file with the content specified above, and placed this file in ./etc/init.d/ , but is not working.

What i'm doing wrong?

Thanks

Any idea? Please help me !


Thanks
mariuscotan is offline   Reply With Quote
Old 13th January 2010, 00:00   #7
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
Unfortunately, I am not familiar enough with Cent to lead you in the right direction. I know there are slight differences with that distro when compared to others I have used.

You might be better off posting how do I setup something to auto start in a CentOS user forum.
fc*uk is offline   Reply With Quote
Old 13th January 2010, 00:06   #8
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
But before you do that, give this a shot and see if it works for you.

http://forums.winamp.com/showthread....04#post2487604
fc*uk is offline   Reply With Quote
Old 13th January 2010, 09:15   #9
mariuscotan
Junior Member
 
Join Date: Jan 2010
Posts: 6
Quote:
Originally posted by fc*uk
But before you do that, give this a shot and see if it works for you.

http://forums.winamp.com/showthread....04#post2487604

Thank you fc*uk, finally it is working!!!

i have added a new cornjob with corntab -e command, and created sc_mon.sh file, and all is working.

So if you are using centos, this method is working!!!

Thanks again fc*uk!
mariuscotan is offline   Reply With Quote
Old 14th January 2010, 00:33   #10
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
Great! I am glad I was finally able to help you get your problem sorted!
fc*uk is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump