Ticket #677 (closed enhancement: duplicate)
pid_of should use, name or process, and running user.
| Reported by: | bunkacid | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | initng-0.7.1 |
| Component: | InitNG | Version: | i don't know |
| Severity: | normal | Keywords: | |
| Cc: |
Description
it would be great if the pid_of option could take two arguments, the name of the program as it already does along with the user running the process.
pid_of = ntpd root;
this would find, the process named ntpd, running as root.
Change History
Note: See
TracTickets for help on using
tickets.

This feature is already possible with the "pgrep" tool, from the "procps" suite of utilities.
Would be a good idea to use it or borrow code from it?
Hope it helps.