]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
rather match the correct service than the parent pid
authormh <mh@immerda.ch>
Wed, 29 May 2013 21:46:37 +0000 (23:46 +0200)
committermh <mh@immerda.ch>
Wed, 29 May 2013 21:46:37 +0000 (23:46 +0200)
the last approach only matched if someone was logged in
with ssh. :/

manifests/openbsd.pp

index 16ba2840fd33a2c6ef384f6f900d989cc95f944b..cb6dbba6816ca143313bc91fccf6d053bce61073 100644 (file)
@@ -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',
   }
 }