Document the purpose of this script. Use the temp directory for tempfiles
This commit is contained in:
parent
c0d1c2939b
commit
a76e4a0c08
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54512
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user