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: c...@cam.ac.uk
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to