Subject: | |
From: | |
Reply To: | |
Date: | Wed, 20 Dec 2000 11:39:53 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
[log in to unmask] wrote:
> My off-list discussion with donna
who me? :-)
> brings me to a couple of questions for the
> intrepid souls among us who are running various daemons, the first question
> more appropriate for Halloween than Christmas: how would you like to kill
> your daemons?
to give an example.... here's a ps -au for manager.ctm from one of my systems:
:ps '-au MANAGER.CTM'
PID TTY TIME COMMAND
65611 ldev10 0:00 CI.PUB.SYS
65613 ldev10 0:00 CI.PUB.SYS
131162 ldev10 0:00 SH.HPBIN.SYS
131168 ldev10 0:00 SH.HPBIN.SYS
196712 ldev10 0:13 /CTM/BIN/p_ctmag
65644 ldev10 0:46 /CTM/BIN/p_ctmat
131219 ldev10 0:00 CI.PUB.SYS
131221 ldev10 0:00 SH.HPBIN.SYS
196758 ldev10 0:45 /CTM/BIN/p_ctmat
pretending that /CTM/BIN/p_ctmat is the name of the program that needs killing,
what pid should be used??
the example that greg and i were looking at yesterday (which of course, i can't
duplicate today :-) was for smbd.samba.sys. it was very similar to the above
example -- there were two lines both listing smbd.samba.sys. again, which pid
to use?
my entirely non-scientific observations indicate that 'smallish' pids (in the
65k range) are the right number. 'large-ish' pids (like 196758 in the above
example) are...well not :-)
> Daemons can be killed by determining their pids and killing
> these pids.
this brings up the next logical question (i think). i've tried going into the
shell and typed 'kill <pid_number>' and the shell says something impolite in
return. (actually, the only way i've gotten kill to work is the 'kill `cat...`'
method that mark showed us.) how do kill something without a pid file? just a
pid number? - d
--
Donna Garverick Sr. System Programmer
925-210-6631 [log in to unmask]
"Unix _is_ user friendly.
It's just very selective about who its friends are.
And sometimes even best friends have fights."
>>>MY opinions, not Longs Drug Stores'<<<
|
|
|