Old 30th September 2003, 17:38   #1
Chris_666
Junior Member
 
Join Date: Sep 2003
Posts: 4
How to stop shoutcast on linux?

I think I read all the FAQ and a lot of posts in the forums. But nothing that could help me.

I start shoutcast on linux with the following command:
code:
./sc_serv sc_serv.conf &


But how can I stop the server? I don't want it to run 24/7, because I am sending only a few hours per week.

And another question is, how can I change the user which runs sc_serv? I don't want it to run as root.
Chris_666 is offline   Reply With Quote
Old 30th September 2003, 20:37   #2
svanneste
Senior Member
 
Join Date: Jan 2002
Posts: 156
Hello Chris,

From a command line :
ps X

then locate the PID at the left and type

kill -TERM PID
where PID is the number you saw before.


Any user can launch sc_serv. You don't have to be root to start it.
svanneste is offline   Reply With Quote
Old 30th September 2003, 20:47   #3
Chris_666
Junior Member
 
Join Date: Sep 2003
Posts: 4
Thanks for your answer.

But I can only stop the daemon when I kill it? There is no stop-script?
So I could do:
killall -9 sc_serv
?
Chris_666 is offline   Reply With Quote
Old 30th September 2003, 20:49   #4
svanneste
Senior Member
 
Join Date: Jan 2002
Posts: 156
No Chris there is no script. Please read the README file again.

Quote:
If you want to stop the server, send a TERM or INT signal by issuing a ctrl-C if the server is in the foreground, or a kill -TERM if the server is running in the background.
svanneste is offline   Reply With Quote
Old 30th September 2003, 20:59   #5
Chris_666
Junior Member
 
Join Date: Sep 2003
Posts: 4
Oh, I am sorry.
I thought I read nearly everything...
Chris_666 is offline   Reply With Quote
Old 30th September 2003, 21:10   #6
svanneste
Senior Member
 
Join Date: Jan 2002
Posts: 156
No problem Chris,

Just to mention this thread, look at the *NIX parts, you have direct links to SHOUTcast relative projects on Sourceforce and Freshmeat. Perhaps can you find another SHOUTcast server.
svanneste is offline   Reply With Quote
Old 30th September 2003, 21:55   #7
Chris_666
Junior Member
 
Join Date: Sep 2003
Posts: 4
Thanks for that link.
But I don't want to change my server-software, because it was hard enough to install this one. I needed some help of one, who is more familiar with linux than I am.
Greetings to Paris from Koblenz (Germany). ;-)

Chris
Chris_666 is offline   Reply With Quote
Old 1st October 2003, 06:49   #8
svanneste
Senior Member
 
Join Date: Jan 2002
Posts: 156
Hello Chris,
Your are WELCOME
svanneste 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