]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/kfreebsd/files/dsa-killruby
Fix stomping of certfile
[dsa-puppet.git] / modules / kfreebsd / files / dsa-killruby
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 # every hour, kill all puppet jobs that are lingering around, i.e. all
7 # processes whose parent is init, and who have lived for longer than an hour
8 # (if they lived for 10 hours then they get to live an hour longer because
9 # the regex is just that gracious.
10 12 * * * *      root    pgrep -P 1 -f '/usr/bin/ruby1.8 /usr/sbin/puppetd -o --no-daemonize' | xargs --no-run-if-empty ps --no-headers -o pid,etime | grep '[1-9]:..:..$' | awk '{print $1}' | xargs --no-run-if-empty kill -9