From 96760cc558a2e6f72b138f2fc3e16820f3bf2036 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Thu, 23 Oct 2008 14:59:42 -0400 Subject: [PATCH] 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 --- manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {}