summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-06-22 06:34:52 +0000
committerasami <asami@FreeBSD.org>1999-06-22 06:34:52 +0000
commit7007107d7da10d6b007ef301e5a9628edbdb72dd (patch)
tree03443b1f2a29a08d96b3160b8d605d73b78740f6 /Tools
parent2a5706321066e1c7f3ebc1ef1f7d0f44bef805b7 (diff)
downloadFreeBSD-ports-7007107d7da10d6b007ef301e5a9628edbdb72dd.zip
FreeBSD-ports-7007107d7da10d6b007ef301e5a9628edbdb72dd.tar.gz
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 ebae314..420a7d3 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 &
OpenPOWER on IntegriCloud