Old 21st May 2003, 22:30   #1
jaspal
Junior Member
 
Join Date: Jul 2001
Posts: 18
how to identify sc-dnas servers on debian

hi,

i'm running 5 sc-dnas servers on one debian machine. all are running in background. now my problem is that i can't identify the streams in order to restart one. the other problem is that sc-dnas starts 2 or 3 processes each server.

how can i solve this? i need a simple way to identify which process runs which server.

thanks,
jaspal
jaspal is offline   Reply With Quote
Old 21st May 2003, 22:32   #2
invis
Senior Member
 
invis's Avatar
 
Join Date: May 2003
Location: California, USA
Posts: 105
Send a message via ICQ to invis Send a message via AIM to invis Send a message via Yahoo to invis
The way I solved it for me is I don't make them go into the bg.. I keep them all in fg and use screen.
invis is offline   Reply With Quote
Old 21st May 2003, 22:34   #3
jaspal
Junior Member
 
Join Date: Jul 2001
Posts: 18
can you tell me exactly how you start them. what if i log off that machine? will the processes terminate?
jaspal is offline   Reply With Quote
Old 22nd May 2003, 03:10   #4
Tom
Moderator
 
Join Date: Apr 2000
Posts: 4,491
Check out the options in the ps command.
Something like: ps -eo "%p %a"
might work. At least you should be able to see which .conf is with each sc_serv process using something like that.

Tom
Tom is offline   Reply With Quote
Old 22nd May 2003, 14:14   #5
matt2kjones
Major Dude
 
Join Date: May 2002
Location: UK
Posts: 929
Send a message via ICQ to matt2kjones Send a message via AIM to matt2kjones
if you run them, giving a location to a conf file, then the server will be listed in the processes, with the location of the config file

use different config files for each server and wolla, you will be able to identify them by the config file thats associated with them


TDD House & Trance Radio:
[ 64k Stream | Visit Site ]
matt2kjones is offline   Reply With Quote
Old 23rd May 2003, 09:18   #6
jaspal
Junior Member
 
Join Date: Jul 2001
Posts: 18
thanks a lot for your help. the commend is exactly what i was searching for. maybe you can help me with another problem.

when starting a shoutcast server on my debian machine, it creates 6 processes (!). this makes it quiet hard to restart or stop a server. on my redhat&freebsd testing machines each server runs in one process.

any idea of how to solve that problem?
jaspal is offline   Reply With Quote
Old 23rd May 2003, 09:41   #7
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
does it not log the pid to your sc_serv.log file?
Jay is offline   Reply With Quote
Old 23rd May 2003, 10:52   #8
matt2kjones
Major Dude
 
Join Date: May 2002
Location: UK
Posts: 929
Send a message via ICQ to matt2kjones Send a message via AIM to matt2kjones
yea the pid of the parent process is logged to the logfile

what u need to do, is go to the end of the log, then scrol up until you see a pid, that will be hte pid of the parent process

i, personally, thinks the shoutcast server should log the current pid to sc_serv.pid or something


TDD House & Trance Radio:
[ 64k Stream | Visit Site ]
matt2kjones 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