From: mh Date: Wed, 29 May 2013 21:46:37 +0000 (+0200) Subject: rather match the correct service than the parent pid X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a3aeb0d5733241eb80f7687deea11a715f39440d;p=puppet-sshd.git rather match the correct service than the parent pid the last approach only matched if someone was logged in with ssh. :/ --- 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', } }