PDA

View Full Version : Differentiate between sc_serv instances (Linux)?


rgATL
15th September 2007, 05:05
Hey,

I'm running multiple DNAS's on a linux box. When I look at the processes running on the server, all the instances of the DNAS just show up as sc_serv, so I don't know which is which (if I ever need to kill and/or restart a server).

Is there any to tell which is which (ie, which music genre or which port)?

Thanks,
rg.

Nick@ss
15th September 2007, 05:34
; If you want to manage multiple configurations, just copy
; this file to another name, and run sc_serv with that name
; such as:
; sc_serv.exe sc_leet.conf

rgATL
15th September 2007, 05:42
Nick, I don't think you read my question (you're always great at replying quickly but all too often give a stock answer).

I know how to run multiple instances of the DNAS. What I don't know is how to tell them apart in a linux process list. They all just show up as "sc_serv" with a different PID. Anyway to tell what's what other than writing down those PID's and holding on to the numbers for months and months?

Thanks,
rg.

bored_womble
15th September 2007, 08:57
the initial response was kind of there ... just missing a little vital detail

if you have a different config file name, rather than just a new directory thus running

./sc_serv my_new_config

when you do a

ps ax

or

ps -ef

(depending on your *nix flavour)

then the configuration filename should show up against the PID thus showing which sc_serv is running which config.

BW

rgATL
15th September 2007, 15:19
I was just using "ps" to show the processes. I'll give this a shot.

Thanks so much,
rg.