multi-named instance exist?

Chris Thompson cet1 at cam.ac.uk
Thu Mar 26 10:27:11 UTC 2009


On Mar 26 2009, Kevin Darcy wrote:

[...]
>The problems with using "ps" to find the named process include:
>-- you can get false matches if you don't tailor your string matching 
>_just_right_,
>-- unexpectedly "missed" matches if the command-line arguments change, 
>even a little bit (e.g. if someone bypasses the wrapper script on an 
>emergency basis to start the process manually, with the arguments given 
>perhaps in a different order), and
>-- since "ps" operates on a constantly-changing data source, it can 
>"miss" legitimate processes in the process table. I've seen that happen 
>many many times with "ps" on Solaris, not sure if Linux or other flavors 
>of Unix have some sort of concurrency-control mechanism to prevent that 
>phenomenon.

If you have a pgrep(1) command, use it rather than mucking around with
ps(1). And if you haven't, consider switching to a Unix flavour that
does...

But this is getting off-topic for bind-users.

-- 
Chris Thompson
Email: cet1 at cam.ac.uk



More information about the bind-users mailing list