From: Silvio Rhatto Date: Fri, 25 Feb 2011 13:25:11 +0000 (-0300) Subject: Adding missing puppet_restart X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6496918aaaf4e153a4ea1f022b6302a94452fdd4;p=puppet-puppet.git Adding missing puppet_restart --- diff --git a/templates/check-puppetd.sh.erb b/templates/check-puppetd.sh.erb index 80ea3f6..298c2b2 100644 --- a/templates/check-puppetd.sh.erb +++ b/templates/check-puppetd.sh.erb @@ -12,6 +12,11 @@ function puppet_start { $INIT start } +function puppet_restart { + $INIT stop + puppet_start +} + if [ "$1" == "restart" ]; then puppet_restart elif [ ! -f "$PID" ]; then