From 6496918aaaf4e153a4ea1f022b6302a94452fdd4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 25 Feb 2011 10:25:11 -0300 Subject: Adding missing puppet_restart --- templates/check-puppetd.sh.erb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3