aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-14 14:52:07 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-14 14:52:07 -0200
commit66e7b2c620d613e4c068d9ea41fb94b96c31e7cf (patch)
tree09281fbbf524acae07a8f313b9f45fa84b3d497f /share/hydractl
parent70fe0bf7ed5539627d245c4784831d1c6f9fc568 (diff)
downloadhydra-66e7b2c620d613e4c068d9ea41fb94b96c31e7cf.tar.gz
hydra-66e7b2c620d613e4c068d9ea41fb94b96c31e7cf.tar.bz2
Making puppet-trigger backwards compatible
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/puppet-trigger6
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