freebsd-ports/Tools/portbuild/scripts/reportload
Kris Kennaway 15d5c4a51f Pull in portbuild.$(hostname) for per-client customization
Approved by:    portmgr (self)
2004-09-26 21:59:09 +00:00

16 lines
354 B
Bash
Executable file

#!/bin/sh
#
# This is run on the clients to report their loads to the server.
# configurable variables
pb=/var/portbuild
arch=$1
. ${pb}/${arch}/portbuild.conf
if [ -f ${pb}/${arch}/portbuild.$(hostname) ]; then
. ${pb}/${arch}/portbuild.$(hostname)
fi
num=$(echo $(ls -1d ${scratchdir}/*/chroot/*/used 2>/dev/null| wc -l))
echo -n "$num "
uptime