From a8cb4d90f24974260005a30f4d7edd4918c755ea Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 11 Feb 2002 02:13:29 +0000 Subject: Document the purpose of this script. Use the temp directory for tempfiles --- Tools/portbuild/scripts/reportload | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Tools') 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)) -- cgit