a3aeb0d573
the last approach only matched if someone was logged in with ssh. :/
8 行
268 B
Puppet
8 行
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',
|
|
}
|
|
}
|