diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-14 14:52:07 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-14 14:52:07 -0200 |
commit | 66e7b2c620d613e4c068d9ea41fb94b96c31e7cf (patch) | |
tree | 09281fbbf524acae07a8f313b9f45fa84b3d497f /share | |
parent | 70fe0bf7ed5539627d245c4784831d1c6f9fc568 (diff) | |
download | hydra-66e7b2c620d613e4c068d9ea41fb94b96c31e7cf.tar.gz hydra-66e7b2c620d613e4c068d9ea41fb94b96c31e7cf.tar.bz2 |
Making puppet-trigger backwards compatible
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/puppet-trigger | 6 |
1 files changed, 5 insertions, 1 deletions
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 |