summaryrefslogtreecommitdiff
path: root/share/hydractl/puppet-trigger
blob: cb399d12f96bd9d3b1c61467bd5616ec2660a331 (plain)
1
2
3
4
5
6
7
#!/bin/bash

if [ -e '/var/run/puppet/agent.pid' ]; then
  kill -USR1 `cat /var/run/puppet/agent.pid`
elif [ -e '/var/run/puppet/puppetd.pid' ]; then
  kill -USR1 `cat /var/run/puppet/puppetd.pid`
fi