Skip to content

Commit

Permalink
Actual fix for cleaning up tmp for bots
Browse files Browse the repository at this point in the history
  • Loading branch information
gfodor committed Jul 11, 2019
1 parent c57be56 commit f0d7ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/bots/templates/squawkers.sh.j2
Expand Up @@ -29,7 +29,7 @@ for i in `seq 1 $NUM_SQUAWKER_PROCESSES`; do
pkill -KILL -P $botid
kill -KILL $botid
logrotate -s logrotate.state logrotate.conf
ls -t1 | grep puppeteer_dev_profile | tail -n+$NUM_SQUAWKER_PROCESSES | xargs rm -rf
pushd /tmp ; ls -t1 | grep puppeteer_dev_profile | tail -n+$NUM_SQUAWKER_PROCESSES | xargs rm -rf ; popd
done
) &
sleep $PROCESS_SPAWN_DELAY
Expand Down

0 comments on commit f0d7ee0

Please sign in to comment.