]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
debian has both status and restart options, in fact restart is
authorMicah Anderson <micah@riseup.net>
Thu, 23 Oct 2008 18:59:42 +0000 (14:59 -0400)
committerMicah Anderson <micah@riseup.net>
Thu, 23 Oct 2008 18:59:42 +0000 (14:59 -0400)
preferable because a stop/start operation can leave sshd broken
because the stop wont stop before the start is run. On the next puppet
run ssh will be brought back up, but its a hair-raising few minutes
while you wonder what happened

manifests/init.pp

index 55a2714a11a640ae24386d8fbb08295f0b6db816..aaf068e6d99cc19789e43c6e4edf1a74a853970f 100644 (file)
@@ -247,7 +247,8 @@ class sshd::debian inherits sshd::linux {
     }
     Service[sshd]{
         name => 'ssh',
-        hasstatus => false,
+        hasstatus => true,
+        hasrestart => true,
     }
 }
 class sshd::ubuntu inherits sshd::debian {}