diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-25 10:25:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-25 10:25:11 -0300 |
commit | 6496918aaaf4e153a4ea1f022b6302a94452fdd4 (patch) | |
tree | 4ed0df3331dafb96cf183ca24902e9c1d1775ac7 /templates/check-puppetd.sh.erb | |
parent | 79d20cd61499d98416e4904fae4385a3cddfa790 (diff) | |
download | puppet-puppet-6496918aaaf4e153a4ea1f022b6302a94452fdd4.tar.gz puppet-puppet-6496918aaaf4e153a4ea1f022b6302a94452fdd4.tar.bz2 |
Adding missing puppet_restart
Diffstat (limited to 'templates/check-puppetd.sh.erb')
-rw-r--r-- | templates/check-puppetd.sh.erb | 5 |
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 |