rather match the correct service than the parent pid

the last approach only matched if someone was logged in
with ssh. :/
This commit is contained in:
mh 2013-05-29 23:46:37 +02:00
parent 3c30e95985
commit a3aeb0d573

View file

@ -3,6 +3,6 @@ class sshd::openbsd inherits sshd::base {
restart => '/bin/kill -HUP `/bin/cat /var/run/sshd.pid`',
stop => '/bin/kill `/bin/cat /var/run/sshd.pid`',
start => '/usr/sbin/sshd',
status => '/usr/bin/pgrep -P `/bin/cat /var/run/sshd.pid`',
status => '/usr/bin/pgrep -f /usr/sbin/sshd',
}
}