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