summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-25 10:25:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-02-25 10:25:11 -0300
commit6496918aaaf4e153a4ea1f022b6302a94452fdd4 (patch)
tree4ed0df3331dafb96cf183ca24902e9c1d1775ac7
parent79d20cd61499d98416e4904fae4385a3cddfa790 (diff)
downloadpuppet-puppet-6496918aaaf4e153a4ea1f022b6302a94452fdd4.tar.gz
puppet-puppet-6496918aaaf4e153a4ea1f022b6302a94452fdd4.tar.bz2
Adding missing puppet_restart
-rw-r--r--templates/check-puppetd.sh.erb5
1 files changed, 5 insertions, 0 deletions
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