From a3aeb0d5733241eb80f7687deea11a715f39440d Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 29 May 2013 23:46:37 +0200 Subject: rather match the correct service than the parent pid the last approach only matched if someone was logged in with ssh. :/ --- manifests/openbsd.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests') 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', } } -- cgit v1.2.3