diff options
author | mh <mh@immerda.ch> | 2013-05-29 23:46:37 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-05-29 23:46:37 +0200 |
commit | a3aeb0d5733241eb80f7687deea11a715f39440d (patch) | |
tree | a1f97e02a5054dfd3e3609e5132b55232a948480 /manifests | |
parent | 3c30e959852be27d3b4b532f1b9c913e5ae613f9 (diff) | |
download | puppet-sshd-a3aeb0d5733241eb80f7687deea11a715f39440d.tar.gz puppet-sshd-a3aeb0d5733241eb80f7687deea11a715f39440d.tar.bz2 |
rather match the correct service than the parent pid
the last approach only matched if someone was logged in
with ssh. :/
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/openbsd.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/openbsd.pp b/manifests/openbsd.pp index 16ba284..cb6dbba 100644 --- a/manifests/openbsd.pp +++ b/manifests/openbsd.pp @@ -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', } } |