aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-06-22 14:34:52 +0800
committerasami <asami@FreeBSD.org>1999-06-22 14:34:52 +0800
commit7007107d7da10d6b007ef301e5a9628edbdb72dd (patch)
tree03443b1f2a29a08d96b3160b8d605d73b78740f6 /Tools
parent2a5706321066e1c7f3ebc1ef1f7d0f44bef805b7 (diff)
downloadfreebsd-ports-gnome-7007107d7da10d6b007ef301e5a9628edbdb72dd.tar.gz
freebsd-ports-gnome-7007107d7da10d6b007ef301e5a9628edbdb72dd.tar.zst
freebsd-ports-gnome-7007107d7da10d6b007ef301e5a9628edbdb72dd.zip
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.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/reportload.sh6
1 files changed, 5 insertions, 1 deletions
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 &