From: Silvio Rhatto Date: Mon, 14 Feb 2011 16:52:07 +0000 (-0200) Subject: Making puppet-trigger backwards compatible X-Git-Tag: 0.1~353 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=66e7b2c620d613e4c068d9ea41fb94b96c31e7cf;p=hydra.git Making puppet-trigger backwards compatible --- diff --git a/share/hydractl/puppet-trigger b/share/hydractl/puppet-trigger index 7e255af..a2813be 100755 --- a/share/hydractl/puppet-trigger +++ b/share/hydractl/puppet-trigger @@ -1,3 +1,7 @@ #!/bin/bash -kill -USR1 `cat /var/run/puppet/agent.pid` +if [ -e '/var/run/puppet/agent.pid' ]; then + kill -USR1 `cat /var/run/puppet/agent.pid` +if [ -e '/var/run/puppet/puppetd.pid' ]; then + kill -USR1 `cat /var/run/puppet/puppetd.pid` +fi