X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fkfreebsd%2Ffiles%2Fdsa-killruby;h=46a39f09f84cfd361783f0ead528db38e55a4786;hb=48005c81d90928a93e1adfed3fa446838a4e49b9;hp=cf5056a88cde2e51fec4b6cdeee20ca0a529c4e7;hpb=0a57e2f60fbea0ad2b14a7dbf56062a92126186a;p=mirror%2Fdsa-puppet.git diff --git a/modules/kfreebsd/files/dsa-killruby b/modules/kfreebsd/files/dsa-killruby index cf5056a88..46a39f09f 100644 --- a/modules/kfreebsd/files/dsa-killruby +++ b/modules/kfreebsd/files/dsa-killruby @@ -1,5 +1,10 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + # every hour, kill all puppet jobs that are lingering around, i.e. all # processes whose parent is init, and who have lived for longer than an hour # (if they lived for 10 hours then they get to live an hour longer because # the regex is just that gracious. -12 * * * * root pgrep -P 1 -f '/usr/bin/ruby1.8 /usr/sbin/puppetd --factsync -o --no-daemonize' | xargs ps --no-headers -o pid,etime | grep '[1-9]:..:..$' | awk '{print $1}' | xargs --no-run-if-empty kill -9 +12 * * * * root pgrep -P 1 -f '/usr/bin/ruby1.8 /usr/sbin/puppetd --factsync -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