module-sshd/manifests/openbsd.pp
mh a3aeb0d573 rather match the correct service than the parent pid
the last approach only matched if someone was logged in
with ssh. :/
2013-05-29 23:46:37 +02:00

8 line
268 B
Puppet

class sshd::openbsd inherits sshd::base {
Service[sshd]{
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 -f /usr/sbin/sshd',
}
}