From: Micah Anderson Date: Thu, 23 Oct 2008 18:59:42 +0000 (-0400) Subject: debian has both status and restart options, in fact restart is X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=96760cc558a2e6f72b138f2fc3e16820f3bf2036;p=puppet-sshd.git debian has both status and restart options, in fact restart is 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 --- diff --git a/manifests/init.pp b/manifests/init.pp index 55a2714..aaf068e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 {}