summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-05-29 23:46:37 +0200
committermh <mh@immerda.ch>2013-05-29 23:46:37 +0200
commita3aeb0d5733241eb80f7687deea11a715f39440d (patch)
treea1f97e02a5054dfd3e3609e5132b55232a948480 /manifests
parent3c30e959852be27d3b4b532f1b9c913e5ae613f9 (diff)
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.pp2
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',
}
}