in reply to How best to see if syslogd is running?
Don't mess with grepping, or even running ps. Get the pid, and kill 0, $pid; it to see if it's alive. If you must run ps, don't grep, but call it like ps h 1234 where 1234 is the pid wanted, and see if it outputs anything or even its exit status.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How best to see if syslogd is running?
by Fletch (Bishop) on Jan 03, 2005 at 21:33 UTC |