diff options
author | kris <kris@FreeBSD.org> | 2002-02-11 10:13:29 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-02-11 10:13:29 +0800 |
commit | a8cb4d90f24974260005a30f4d7edd4918c755ea (patch) | |
tree | cfc80f7a1907514472b0df1af1f76f860cc73f9f /Tools | |
parent | 0a126cd688fbf7ba2a2173c1a7ec67bf263d8ca5 (diff) | |
download | freebsd-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-x | Tools/portbuild/scripts/reportload | 6 |
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)) |