mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
0d088a094b
/var/portbuild is the new designated home of the portbuild setup, and is expected to be a symlink to wherever you choose to put the stuff. Also, change reportload to use /var/portbuild to store temporary files. Seems there are some bugs in the null mount code that make the files inaccessible if you are using an NFS root.
19 lines
327 B
Bash
Executable File
19 lines
327 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# configurable variables
|
|
pb=/var/portbuild
|
|
|
|
. ${pb}/portbuild.conf
|
|
|
|
me=$(hostname -s)
|
|
tmpfile=${pb}/${me}
|
|
|
|
while true; do
|
|
num=$(echo $(ls -1d ${pb}/*/chroot/*/used 2>/dev/null| wc -l))
|
|
echo -n "$num " > ${tmpfile}
|
|
uptime >> ${tmpfile}
|
|
scp -q ${tmpfile} $master:${pb}/loads/
|
|
rm -f ${tmpfile}
|
|
sleep 5
|
|
done
|