pid file
Carter Bullard
carter at qosient.com
Thu Dec 21 14:09:17 EST 2000
Hey Clauss,
We have this behavior pretty much implemented in "J".
I have a variable in the .argusrc file to turn on PID file
generation (not on the command line though), although
the current default is to generate the pid file (I can flip
that very easily). I'll add an ARGUS_PID_DIR= variable,
if its null, we'll use our default pid directory heuristic.
So, the current implementation looks for /var/run, and if
its not there, it will put the pid file in $ARGUSHOME if
exists or $HOME if not. Seems I should consider /etc as
the second potential directory? If I can't create the dir
in /etc, I can go for $ARGUSHOME, then $HOME?
Carter
Carter Bullard
QoSient, LLC
300 E. 56th Street, Suite 18K
New York, New York 10022
carter at qosient.com
Phone +1 212 813-9426
Fax +1 212 813-9426
-----Original Message-----
From: owner-argus at lists.andrew.cmu.edu
[mailto:owner-argus at lists.andrew.cmu.edu]On Behalf Of Clauss Strauch
Sent: Thursday, December 21, 2000 11:37 AM
To: argus
Subject: Re: pid file
Lots of OS's don't usually use pid files when starting/stopping
things run out of rc files, but use pgrep/pkill/killall or other programs
that lookup a process by name. For that reason, and because one sometimes
wants to have multiple argus's running on the same interface (eg to quickly
test out some command-line option), it's good to have the default behavior
be not to try to create a pid file, and have this feature be something you
have to explicitly turn on (which I think is a vote to keep the current
behavior).
On some OS's that don't have a standard /var/run directory
(eg Solaris), it's common practice to put .pid files for things run by rc.*
scripts in /etc/. For this reason, and for general reasons of flexibility,
it would be nice if you could specify exactly where .pid files go via some
config option.
-- Clauss Strauch
CMU School of Computer Science
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20001221/e1e5db96/attachment.html>
More information about the argus
mailing list