From 1f99e40a7dff116f26329b715f141963c73dc7b7 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 3 Dec 2012 17:38:04 -0500 Subject: [PATCH] zephyr-mirror-crontab: Fix truncation races. (imported from commit f50f34b3a739e67f2dffb442ac01e50eb7c9e4b8) --- bots/zephyr-mirror-crontab | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/zephyr-mirror-crontab b/bots/zephyr-mirror-crontab index ff8f9df..a7f6001 100644 --- a/bots/zephyr-mirror-crontab +++ b/bots/zephyr-mirror-crontab @@ -22,5 +22,5 @@ SHELL=/bin/bash # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command -35 * * * * kinit -k -t /home/humbug/tabbott.extra.keytab tabbott/extra@ATHENA.MIT.EDU -*/2 * * * * /home/humbug/api/bots/check-mirroring &> /var/run/nagios/check-mirroring-results +35 * * * * env KRB5CCNAME=/tmp/krb5cc_1000.tmp kinit -k -t /home/humbug/tabbott.extra.keytab tabbott/extra@ATHENA.MIT.EDU; mv /tmp/krb5cc_1000.tmp /tmp/krb5cc_1000 +*/2 * * * * /home/humbug/api/bots/check-mirroring &> /var/run/nagios/check-mirroring-results-tmp; mv /var/run/nagios/check-mirroring-results-tmp /var/run/nagios/check-mirroring-results