aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-02-11 10:13:29 +0800
committerkris <kris@FreeBSD.org>2002-02-11 10:13:29 +0800
commita8cb4d90f24974260005a30f4d7edd4918c755ea (patch)
treecfc80f7a1907514472b0df1af1f76f860cc73f9f /Tools
parent0a126cd688fbf7ba2a2173c1a7ec67bf263d8ca5 (diff)
downloadfreebsd-ports-gnome-a8cb4d90f24974260005a30f4d7edd4918c755ea.tar.gz
freebsd-ports-gnome-a8cb4d90f24974260005a30f4d7edd4918c755ea.tar.zst
freebsd-ports-gnome-a8cb4d90f24974260005a30f4d7edd4918c755ea.zip
Document the purpose of this script. Use the temp directory for tempfiles
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/reportload6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/reportload b/Tools/portbuild/scripts/reportload
index 25f65bd6d005..78dc39885a76 100755
--- a/Tools/portbuild/scripts/reportload
+++ b/Tools/portbuild/scripts/reportload
@@ -1,4 +1,8 @@
#!/bin/sh
+#
+# This is run on the clients to report their loads to the server.
+# Every 5 seconds we concatenate the number of currently building ports with
+# the machine uptime and push it to the server.
# configurable variables
pb=/var/portbuild
@@ -6,7 +10,7 @@ pb=/var/portbuild
. ${pb}/portbuild.conf
me=$(hostname -s)
-tmpfile=${pb}/${me}
+tmpfile=${scratchdir}/${me}
while true; do
num=$(echo $(ls -1d ${pb}/*/chroot/*/used 2>/dev/null| wc -l))