diff options
author | kris <kris@FreeBSD.org> | 2003-02-23 06:26:23 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-02-23 06:26:23 +0800 |
commit | 9cab575949fa03a49e2ede0ccbebfdcb5cb0efcc (patch) | |
tree | 87f15dc5de223319410f06f2fb9ab0027ae11190 /Tools/portbuild/scripts | |
parent | 318437de07ba3cdde14e1d9613ebbe39d8e5746f (diff) | |
download | freebsd-ports-graphics-9cab575949fa03a49e2ede0ccbebfdcb5cb0efcc.tar.gz freebsd-ports-graphics-9cab575949fa03a49e2ede0ccbebfdcb5cb0efcc.tar.zst freebsd-ports-graphics-9cab575949fa03a49e2ede0ccbebfdcb5cb0efcc.zip |
Instead of pushing the load data to the master with scp every 10 seconds,
just report it via an inetd service.
Diffstat (limited to 'Tools/portbuild/scripts')
-rwxr-xr-x | Tools/portbuild/scripts/reportload | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Tools/portbuild/scripts/reportload b/Tools/portbuild/scripts/reportload index 0044db5cc75..4f7e0a806c3 100755 --- a/Tools/portbuild/scripts/reportload +++ b/Tools/portbuild/scripts/reportload @@ -1,8 +1,6 @@ #!/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 @@ -10,14 +8,6 @@ arch=$1 . ${pb}/${arch}/portbuild.conf -me=$(hostname -s) -tmpfile=${scratchdir}/${me} - -while true; do - num=$(echo $(ls -1d ${scratchdir}/*/chroot/*/used 2>/dev/null| wc -l)) - echo -n "$num " > ${tmpfile} - uptime >> ${tmpfile} - scp -q ${tmpfile} ${user}@${master}:${pb}/${arch}/loads/ - rm -f ${tmpfile} - sleep 5 -done +num=$(echo $(ls -1d ${scratchdir}/*/chroot/*/used 2>/dev/null| wc -l)) +echo -n "$num " +uptime |