diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-02-11 02:13:29 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-02-11 02:13:29 +0000 |
commit | a76e4a0c08f3233d319eed91dd46e8d2e573f901 (patch) | |
tree | 3a63588245b85ed725d86d7a8b12c89ba88a154b /Tools | |
parent | c0d1c2939bb6c09f8ff7991cea15b942d95ac9b1 (diff) | |
download | ports-a76e4a0c08f3233d319eed91dd46e8d2e573f901.tar.gz ports-a76e4a0c08f3233d319eed91dd46e8d2e573f901.zip |
Notes
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)) |