diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2007-02-18 09:05:28 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2007-02-18 09:05:28 +0000 |
commit | 7379c7f0347bc9bbd56061b9e7bc8a1527d35532 (patch) | |
tree | 85d1a8a621190cb8d2272ee75e4d9854f8be34d8 /Tools | |
parent | ae0d1702e94add7f789f0b64850aa5d28eaba06e (diff) | |
download | ports-7379c7f0347bc9bbd56061b9e7bc8a1527d35532.tar.gz ports-7379c7f0347bc9bbd56061b9e7bc8a1527d35532.zip |
Increase resource limits to 400MB filesize and 2 hours CPU limit per
process. Thankyou openoffice!
Pass in the jail IP address in the JAIL_ADDR environment variable
Notes
Notes:
svn path=/head/; revision=185425
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild index 32b1f38b4da4..0d61b36fcffc 100755 --- a/Tools/portbuild/scripts/portbuild +++ b/Tools/portbuild/scripts/portbuild @@ -129,12 +129,12 @@ unset MAKEFLAGS unset PORTSDIR export SRCBASE=/usr/src -# wait 1 hour before killing build with no output +# wait 2 hours before killing build with no output export TIMEOUT=7200 -# to prevent runaway processes -- 300 meg file size limit, one hour CPU limit -ulimit -f 614400 -ulimit -t 3600 +# to prevent runaway processes -- 400 meg file size limit, 2 hours CPU limit +ulimit -f 819200 +ulimit -t 7200 # directories to clean cleandirs="${LOCALBASE} ${X11BASE} /compat /var/db/pkg" @@ -311,7 +311,7 @@ if [ "${error}" = 0 ]; then if [ "${use_jail}" = 1 ]; then ifconfig lo0 alias 127.${ip1}.${ip2}.${ip3}/32 - jail -J ${chroot}/tmp/jail.id ${chroot} jail-${chrootpid} 127.${ip1}.${ip2}.${ip3} /usr/bin/env HTTP_PROXY=${http_proxy} /usr/bin/nice -n $nice /buildscript ${dirname} 2 "$ED" "$PD" "$FD" "$BD" "$RD" > ${chroot}/tmp/${pkgname}.log2 2>&1 + jail -J ${chroot}/tmp/jail.id ${chroot} jail-${chrootpid} 127.${ip1}.${ip2}.${ip3} /usr/bin/env JAIL_ADDR=127.${ip1}.${ip2}.${ip3} HTTP_PROXY=${http_proxy} /usr/bin/nice -n $nice /buildscript ${dirname} 2 "$ED" "$PD" "$FD" "$BD" "$RD" > ${chroot}/tmp/${pkgname}.log2 2>&1 ifconfig lo0 delete 127.${ip1}.${ip2}.${ip3} else chroot ${chroot} /usr/bin/nice -n $nice /buildscript ${dirname} 2 "$ED" "$PD" "$FD" "$BD" "$RD" > ${chroot}/tmp/${pkgname}.log2 2>&1 |