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
This commit is contained in:
Micah Anderson 2008-10-23 14:59:42 -04:00
parent 90f14f4ae4
commit 96760cc558

View 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 {}