From 15d5069eb1a6b224f1c749e9afdc613b61628491 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Tue, 22 Jun 1999 06:34:52 +0000 Subject: Delete the chroot dirs before starting the load average reporting script so that a rebooting machine doesn't join the cluster in an unclean state. --- Tools/portbuild/scripts/reportload.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/portbuild/scripts/reportload.sh b/Tools/portbuild/scripts/reportload.sh index ebae31437c6e..420a7d3db1db 100755 --- a/Tools/portbuild/scripts/reportload.sh +++ b/Tools/portbuild/scripts/reportload.sh @@ -1,6 +1,10 @@ #!/bin/sh -s=/a/asami/portbuild/scripts/reportload +b=/a/asami/portbuild +s=$b/scripts/reportload + +echo -n ' chroot' +rm -rf $b/*/chroot/* if [ -x $s ]; then $s & -- cgit v1.2.3