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:
parent
3c30e95985
commit
a3aeb0d573
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue