diff options
-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 |