Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 7th February 2006, 01:40   #1
summer
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??
summer is offline   Reply With Quote
Old 7th February 2006, 22:02   #2
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 7,998
1. Open terminal.

2. 'man cron'

3. read the man page
fc*uk is offline   Reply With Quote
Old 28th February 2006, 23:14   #3
yanosuke
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.
yanosuke is offline   Reply With Quote
Old 1st March 2006, 00:10   #4
hackerdork
Forum King
 
hackerdork's Avatar
 
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.
hackerdork is offline   Reply With Quote
Old 1st March 2006, 00:26   #5
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 7,998
indeed. there are a million ways to skin the same cat
fc*uk is offline   Reply With Quote
Reply
Go Back   Winamp 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