Portal Home > Knowledgebase > Articles Database > How to Run Shoutcast On Boot


How to Run Shoutcast On Boot




Posted by al3xis, 06-24-2007, 06:18 PM
Hello, How We can set a shoutcast servers to starts automatically on boot/restart/etc? Regards

Posted by FirmbIT, 06-24-2007, 06:25 PM
Run this command: chkconfig --list is there anything regarding shoutcast in there? If not, you can create a start script and cp it to /etc/init.d here is the general command to start a service on boot: chkconfig servicename on

Posted by al3xis, 06-24-2007, 06:33 PM
In service name what I will add? For example my shoutcast is in /home/shoutcast1/ What I Must Do? Regards

Posted by FirmbIT, 06-24-2007, 06:41 PM
When you run chkconfig --list do you see anything regarding shoutcast or no? I haven't worked with shoutcast too much so I'm not sure if it has a start/stop/restart script.

Posted by al3xis, 06-24-2007, 06:43 PM
No It havent anything regarding shoutcast. What I must Add to /init.d? And what servicename to set?

Posted by Scott.Mc, 06-24-2007, 06:53 PM
Shoutcast doesn't provide an init.d so chkconfig'ing it won't work. The easiest way would be to make a cron such as, #!/bin/sh check=`ps aux | grep -v grep | grep -c 'sc_serv'` if [ $check -le "0" ]; then cd /path/to/shoutcast ./sc_serv & fi

Posted by al3xis, 06-24-2007, 07:09 PM
And where I will create this cron job? Could you give me details? Thank you.

Posted by kencox, 06-24-2007, 07:22 PM
in /etc/rc3.d make a file S99 or S(Any number not already in use higher than any dependancies the app needs to start example mysql) for example for apache vi /etc/rc3.d/S99apache within the file /usr/local/apache/bin/apachectl startssl close the file and set it to so root can execute it Make sure the file is owned by the user that it need to run as. If the app can run as root then its ok to leave it. If it needs to be ran by a spacific user such as named then chown the file to the approprate user.

Posted by al3xis, 06-25-2007, 10:29 AM
I make something other in /etc/rc.d/rc.local I add these lines -- /home/slurp/shoutcast/sc_serv sc_serv.conf & /home/slurp/autodj/sc_trans_linux sc_trans.conf & -- But Nothing Any ideas?

Posted by kencox, 06-25-2007, 10:53 AM
This should work i do not see start at the end of your command. Duplicate the command that you would run normally to start your app in your script.

Posted by al3xis, 06-25-2007, 12:02 PM
What exactly you mean? To make simplier,my shoutcast and sc_trans paths are here-> /home/slurp/shoutcast/sc_serv /home/slurp/autodj/sc_trans_linux --- What I Must Add to rc.local? Can you make it simplier? Many Thanks!

Posted by kencox, 06-25-2007, 12:23 PM
what command do you run to start your shoutcast server?

Posted by al3xis, 06-25-2007, 12:24 PM
What you mean? As i said,I add only these lines to rc.local. Normally I run shoutcast as ./sc_serv

Posted by zole, 08-26-2010, 02:57 AM
Hello, i need the script also, i will try the shoutcast for personal use thx

Posted by Mr Terrence, 08-26-2010, 03:45 AM
You might want to look into a shoutcast control panel http://www.google.com/search?q=shoutcast+panel

Posted by Hostify Networks, 08-26-2010, 10:23 AM
This should be helpful: http://forum.loudcity.net/viewtopic.php?id=3680



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
ddos And Dns cache (Views: 605)
SSL Certifications (Views: 611)


Language: