|
|
#1 |
|
Junior Member
Join Date: Feb 2006
Posts: 27
|
Starting Shoutcast On Boot
I love shoutcast. Just need to have it to boot up automatically. I have read the forums and see this is possible but am not sure how. I am using SuSE 9.2. I have read in the archives that you can use the init.d file to accomplish an automatic startup. I am using the sc_serv files plus the plugin for linux which is the sc_trans files. I'll need to start both the plugin and shoutcast. These files will need to start: shoutcast linux glib C6 files: sc_serv, sc_serv.conf. I am also using the plugin files from sc_trans_040: sc_trans_linux, and sc_trans.conf, and example.lst where I have my playlist set up. I have all these files installed in the /usr/local/shoutcast folder along with the mp3 files. What would my startup file need to say to start all this in init.d? After I write the startup file, I know that I need to copy this file into /etc/init.d and name it shoutcast. Then do the command /etc/init.d/shoutcast start to get it going. Just don't know what to put in the startup file. Can you help?? Please??
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 7,998
|
1. Open terminal.
2. 'man cron' 3. read the man page |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2006
Location: netherlands
Posts: 4
|
OR you can just write the command to /etc/rc.local (as root)
(don't know if it works for a constantly running application, but i guess it's worth a try. Else, yes, use crontab. |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
try this on for size.
vi shoutcast.sh #!/bin/sh sc_serv sc_serv.conf >/dev/null & sc_trans sc_trans.conf >/dev/null 2>&1 & Save shoutcast.sh chmod 755 shoutcast.sh place shoutcast.sh in rc.local or do this cd /etc/rc.local or cd /etc/rc3.d ln -s S99shoutcast /shoutcast.sh (that would be wherever you have placed shoutcast.sh) voila ~HD not too fancy of a script but it does work. I also use svscan (daemontools) to monitor the pids for sc_serv and sc_trans and restart them if they die. Cheers. ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 7,998
|
indeed. there are a million ways to skin the same cat
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|