Old 26th October 2003, 00:09   #1
Swiftie
Junior Member
 
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
Shoutcast Linux Help

Right I admin a server remotely & I started the server using the command supplied in the readme. Now can some one tell me how I can stop it. I've tried sc_serv stop but this doesnt work.

Would appreciate any help I receive. Thanks.

Brgs
Swiftie is offline   Reply With Quote
Old 26th October 2003, 12:38   #2
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
kill <pid>

Where <pid> is the process ID.

if not in the background just do CTRL+C
Jay is offline   Reply With Quote
Old 26th October 2003, 13:49   #3
radioparadise
Junior Member
 
Join Date: Oct 2000
Posts: 27
Quote:
Originally posted by KXRM
kill <pid>

Where <pid> is the process ID.
If you have no idea what a "pid" is, or how to find one, use this command:

kill -9 `ps axw | grep sc_serv | grep -v grep | cut -c1-6`

That will stop all instances of sc_serv on your system. Those are *not* apostrophes (same key as ") - they're the "accent marks" on the same key as ~ - to the left of the "1" key (usually).
radioparadise is offline   Reply With Quote
Old 28th October 2003, 07:43   #4
Swiftie
Junior Member
 
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
Thank you very much but I still have a problem.
As any commands that I have tried. With the PID or the solution posted by radioparadise I get an error that says "Operation Not Permitted" Is this a CHMOD error or is it something else?

Brgs
Swiftie is offline   Reply With Quote
Old 28th October 2003, 15:02   #5
radioparadise
Junior Member
 
Join Date: Oct 2000
Posts: 27
Quote:
Originally posted by Swiftie
Thank you very much but I still have a problem.
As any commands that I have tried. With the PID or the solution posted by radioparadise I get an error that says "Operation Not Permitted" Is this a CHMOD error or is it something else?

Brgs
That would usually mean that you don't own the process you're trying to kill. If you started it as root, you'll need to kill it as root.
radioparadise is offline   Reply With Quote
Old 28th October 2003, 15:35   #6
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
kill -9 seems a little harsh to me, it's not advisable to use it, use kill -TERM instead, only use kill -9 as a last resort or if kill -TERM or kill doesn't do it.

Also as another note, if you can't find your pid it will be in your log, it will be the last pid you will find, so search for PID until you can't find it anymore or use ps as suggested above.
Jay is offline   Reply With Quote
Old 28th October 2003, 15:47   #7
radioparadise
Junior Member
 
Join Date: Oct 2000
Posts: 27
Quote:
Originally posted by KXRM
kill -9 seems a little harsh to me, it's not advisable to use it, use kill -TERM instead, only use kill -9 as a last resort or if kill -TERM or kill doesn't do it.

Also as another note, if you can't find your pid it will be in your log, it will be the last pid you will find, so search for PID until you can't find it anymore or use ps as suggested above.
Yeah, you're right, of course. But sc_serv doesn't seem to mind -9 & I use that in my scripts for a definitive kill.

As for looking for the pid in the logfiles, what's the advantage? Easier to put the line I suggested in a file named sc_stop (or whatever). Don't forget to chmod 755.
radioparadise is offline   Reply With Quote
Old 28th October 2003, 18:02   #8
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
no advantage, just an FYI.
Jay is offline   Reply With Quote
Old 29th October 2003, 13:36   #9
Swiftie
Junior Member
 
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
Quote:
Originally posted by radioparadise
That would usually mean that you don't own the process you're trying to kill. If you started it as root, you'll need to kill it as root.
Thank you very much. Also if I was to set up different configs so that I can have a shoutcast server on different ports do I have to start the service each time I create a config file under a different name or do I just upload a config a file & just restart the service? Because the Readme aint that helpfull and all its says is just to have a something like sc_serv.exe sc_leet.conf

Or would I have to start the proccess as ./sc_serv.exe sc_leet.conf

Brgs
Swiftie is offline   Reply With Quote
Old 30th October 2003, 18:00   #10
jackherer
Major Dude
 
Join Date: Aug 2003
Posts: 942
Quote:
Originally posted by Swiftie
Thank you very much. Also if I was to set up different configs so that I can have a shoutcast server on different ports do I have to start the service each time I create a config file under a different name or do I just upload a config a file & just restart the service? Because the Readme aint that helpfull and all its says is just to have a something like sc_serv.exe sc_leet.conf

Or would I have to start the proccess as ./sc_serv.exe sc_leet.conf

Brgs
Yes you do need a seperate process for each different port you wish to use.

Yes you should start the different configs using ./sc_serv sc_leet.conf but you leave of the .exe linux executables do not end in .exe and simply have the executable bit set in their permisions. An alternative way to do this is have multiple directories containing different sc_serv.conf files and multiple sc_serv binaries.


Do not PM me for tech support !
jackherer is offline   Reply With Quote
Old 3rd November 2003, 01:59   #11
Swiftie
Junior Member
 
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
Quote:
Originally posted by jackherer
Yes you do need a seperate process for each different port you wish to use.

Yes you should start the different configs using ./sc_serv sc_leet.conf but you leave of the .exe linux executables do not end in .exe and simply have the executable bit set in their permisions. An alternative way to do this is have multiple directories containing different sc_serv.conf files and multiple sc_serv binaries.
Thanx for that, I already have a shoutcast DIR but I'll just do lil sub dir's for any other proccess I need running as u have suggested.
Thanks for ur help.

Brgs
Swiftie 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