Use underscores for script names, clear dhcpd leases

pull/5648/head
Thomas Stromberg 2019-10-29 21:33:39 -07:00
parent f8a114ada9
commit 0b65bbf1d9
7 changed files with 9 additions and 8 deletions

View File

@ -36,4 +36,5 @@ echo "doing it"
killall java
sudo rm -Rf ~jenkins/.minikube || echo "could not delete minikube"
sudo rm -Rf ~/jenkins/minikube-integration/* || true
sudo rm /var/db/dhcpd_leases || echo "could not clear dhcpd leases"
sudo reboot

View File

@ -26,13 +26,13 @@ function check_jenkins() {
}
check_jenkins
logger "cleanup-and-reboot running - may shutdown in 60 seconds"
wall "cleanup-and-reboot running - may shutdown in 60 seconds"
logger "cleanup_and_reboot running - may shutdown in 60 seconds"
wall "cleanup_and_reboot running - may shutdown in 60 seconds"
sleep 60
check_jenkins
logger "cleanup-and-reboot is happening!"
logger "cleanup_and_reboot is happening!"
# kill jenkins to avoid an incoming request
killall java

View File

@ -31,7 +31,7 @@ JOB_NAME="KVM_Linux"
PARALLEL_COUNT=4
mkdir cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron
install cron/cleanup-and-reboot_Linux.sh /etc/cron.hourly/cleanup-and-reboot
install cron/cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot
# Download files and set permissions
source ./common.sh

View File

@ -51,7 +51,7 @@ systemctl is-active --quiet kubelet \
&& sudo systemctl stop kubelet
mkdir -p cron && gsutil -m rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron
install cron/cleanup-and-reboot_Linux.sh /etc/cron.hourly/cleanup-and-reboot
install cron/cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot
# Download files and set permissions
source ./common.sh

View File

@ -31,7 +31,7 @@ JOB_NAME="VirtualBox_Linux"
PARALLEL_COUNT=4
mkdir -p cron && gsutil -m rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron
install cleanup-and-reboot_Linux.sh /etc/cron.hourly/cleanup-and-reboot
install cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot
# Download files and set permissions
source ./common.sh

View File

@ -35,7 +35,7 @@ PARALLEL_COUNT=3
mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron
install cron/cleanup_and_reboot_Darwin.sh $HOME/cleanup_and_reboot.sh
echo "0 * * * * $HOME/cleanup-and-reboot.sh" | crontab
echo "*/30 * * * * $HOME/cleanup_and_reboot.sh" | crontab
crontab -l
# Download files and set permissions

View File

@ -33,7 +33,7 @@ PARALLEL_COUNT=3
mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron
install cron/cleanup_and_reboot_Darwin.sh $HOME/cleanup_and_reboot.sh
echo "0 * * * * $HOME/cleanup-and-reboot.sh" | crontab
echo "*/30 * * * * $HOME/cleanup_and_reboot.sh" | crontab
crontab -l
# Download files and set permissions