View Single Post
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#30
Originally Posted by rasmarc View Post
And detecting status of ssh using "status sshd" resp. "status sshd | grep -c running" sometimes gave "0" although ssh was running. As an alternative i found "ps aux | grep -c /usr/sbin/sshd" working reliable.
The link to the updated source is the first thing in the thread: https://gitorious.org/n900-ssh-statu...:ssh-status.sh

If you had checked it, you would have known that I've rewritten it too and that I've switched to
Code:
`pidof sshd` -gt "0"