I was writing a script on my machine that at one point needed to see if sshd was running. I was using pgrep, and while I initially thought I had made a mistake in my script, I found that no matter what I did, [CMD="pgrep"]sshd[/CMD] would not return any PIDs. However, it is most definitely running, as am using the machine over SSH. I can pgrep other processes that are running without issue. Also, I can see sshd just fine with [CMD="ps"]-ax | grep sshd[/CMD] and [CMD="top"]-t[/CMD]
Lastly, I don't know if it matters, but I'm using the openssh-portable from ports. And, FWIW:
...and this happens on all my FBSD systems that are in the same configuration, not just the one.
Lastly, I don't know if it matters, but I'm using the openssh-portable from ports. And, FWIW:
Code:
$ uname -mrs
FreeBSD 8.1-RELEASE-p2 i386