Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2003 13:59:52 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        dragoncrest@voyager.net (Lord Raiden)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Assigning a PID to a given program?
Message-ID:  <200306131759.h5DHxqNK027196@clunix.cl.msu.edu>
In-Reply-To: <200306131727.h5DHR1Qh005841@mail0.mx.voyager.net> from "Lord Raiden" at Jun 13, 2003 01:27:00 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Regreatably it was long enough back that I can't remember which ones it
> was.  One I think might have been in question was when I was rebuilding
> my sendmail configs.  When the script tried to bounce sendmail it tried
> to do it by PID.

It does this and several other utilities do this.  But, the way they
do it is to write their pid in to a file when they start up and then
if the script needs to HUP or kill them,  it gets the PID out of the
file.   So thus, the PID is not fixed for all time, just for that
instance of the program startup.   Any of these I have worked on
have a config option to say where that PID file lives if you don't
like the default.

////jerry

> 
> > At 2003-06-13T15:43:06Z, Dragoncrest <dragoncrest@voyager.net> writes:
> > 
> > > but I've hit into at least one or two apps that's looking for a
> particular
> > > program running on a particular PID (don't ask me why. 
> > 
> > I've never seen that before.  Could you name the apps, and say why you
> think
> > they're looking for a particular PID?
> > -- 
> > Kirk Strauser
> > In Googlis non est, ergo non est.
> > 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306131759.h5DHxqNK027196>