Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   autostart for shoutcast on centos 5.3 (http://forums.winamp.com/showthread.php?t=316057)

mariuscotan 6th January 2010 22:50

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

fc*uk 7th January 2010 01:18

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.

mariuscotan 7th January 2010 14:59

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?

fc*uk 8th January 2010 00:10

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.

mariuscotan 9th January 2010 10:44

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 12th January 2010 19:58

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

fc*uk 13th January 2010 00:00

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 13th January 2010 00:06

But before you do that, give this a shot and see if it works for you.

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

mariuscotan 13th January 2010 09:15

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!

fc*uk 14th January 2010 00:33

Great! I am glad I was finally able to help you get your problem sorted!


All times are GMT. The time now is 15:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.