Merge "Remove system cron activities on slaves"

This commit is contained in:
Jenkins 2014-06-30 23:11:55 +00:00 committed by Gerrit Code Review
commit bad03f43a6

View File

@ -115,5 +115,12 @@ elif [ "$OS_FAMILY" == "RedHat" ] ; then
fi
fi
# Remove cron jobs
# We create fresh servers for these hosts, and they are used once. They don't
# need to do things like update the locatedb or the mandb or rotate logs
# or really any of those things. We only want code running here that we want
# here.
sudo rm -f /etc/cron.{monthly,weekly,daily,hourly,d}/*
sync
sleep 5