]> gitweb.fluxo.info Git - hydra.git/commitdiff
Making puppet-trigger backwards compatible
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 14 Feb 2011 16:52:07 +0000 (14:52 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 14 Feb 2011 16:52:07 +0000 (14:52 -0200)
share/hydractl/puppet-trigger

index 7e255afafeb9ef64dc4b913dc52cc5691e1fa4f7..a2813be95c0e6486921b6ed0accb6fb240a4a259 100755 (executable)
@@ -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