svn commit: r244847 - projects/portbuild/crontabs
Mark Linimon
linimon at FreeBSD.org
Sun Dec 30 00:56:15 UTC 2012
Author: linimon (doc,ports committer)
Date: Sun Dec 30 00:56:14 2012
New Revision: 244847
URL: http://svnweb.freebsd.org/changeset/base/244847
Log:
Continue migrating tasks away from root and onto portbuild. While here,
reformat the entries, move the logfiles and lockfiles, and refactor
constants.
Modified:
projects/portbuild/crontabs/portbuild
projects/portbuild/crontabs/root
Modified: projects/portbuild/crontabs/portbuild
==============================================================================
--- projects/portbuild/crontabs/portbuild Sun Dec 30 00:49:56 2012 (r244846)
+++ projects/portbuild/crontabs/portbuild Sun Dec 30 00:56:14 2012 (r244847)
@@ -2,9 +2,31 @@
# (/tmp/crontab.GlSF7IFIHx installed on Tue Nov 20 19:57:41 2012)
# (Cron version -- $FreeBSD: release/9.0.0/usr.sbin/cron/crontab/crontab.c 185041 2008-11-18 00:39:50Z matteo $)
#
-# portmgr crontab
+# portbuild crontab
#
-SCRIPTS="/var/portbuild/scripts/"
-ERRORLOGS="/var/portbuild/errorlogs/"
+PORTBUILD="/a/portbuild"
+ERRORLOGS="${PORTBUILD}/errorlogs/"
+LOCKFILES="${PORTBUILD}/lockfiles/"
+SCRIPTS="${PORTBUILD}/scripts/"
#
-0,15,30,45 * * * * cd ${ERRORLOGS} && ${SCRIPTS}/dopackagestats
+# Update package statistics
+#
+#0,15,30,45 * * * * cd ${ERRORLOGS} && ${SCRIPTS}/dopackagestats
+#
+# Update logs. Uncomment the ones for architectures you support.
+#
+#0,10,20,30,40,50 * * * * lockf -k -t 0 ${LOCKFILES}/dologs.lock ${SCRIPTS}/dologs amd64 > /dev/null 2>&1
+#1,11,21,31,41,51 * * * * lockf -k -t 1 ${LOCKFILES}/dologs.lock ${SCRIPTS}/dologs arm > /dev/null 2>&1
+#2,12,22,32,42,52 * * * * lockf -k -t 0 ${LOCKFILES}/dologs.lock ${SCRIPTS}/dologs i386 > /dev/null 2>&1
+#3,13,23,33,43,53 * * * * lockf -k -t 0 ${LOCKFILES}/dologs.lock ${SCRIPTS}/dologs ia64 > /dev/null 2>&1
+#4,14,24,34,44,54 * * * * lockf -k -t 0 ${LOCKFILES}/dologs.lock ${SCRIPTS}/dologs mips > /dev/null 2>&1
+#5,15,25,35,45,55 * * * * lockf -k -t 1 ${LOCKFILES}/dologs.lock ${SCRIPTS}/dologs powerpc > /dev/null 2>&1
+#6,16,26,36,46,56 * * * * lockf -k -t 0 ${LOCKFILES}/dologs.lock ${SCRIPTS}/dologs sparc64 > /dev/null 2>&1
+#
+# VCS update of ports
+#
+#0 */3 * * * lockf -t 0 -k ${LOCKFILES}/updatesnap.ports.lock ${SCRIPTS}/updatesnap.ports
+#
+# VCS update of src
+#
+#0 2 * * * lockf -t 0 -k ${LOCKFILES}/updatesnap.lock ${SCRIPTS}/updatesnap
Modified: projects/portbuild/crontabs/root
==============================================================================
--- projects/portbuild/crontabs/root Sun Dec 30 00:49:56 2012 (r244846)
+++ projects/portbuild/crontabs/root Sun Dec 30 00:56:14 2012 (r244847)
@@ -4,21 +4,21 @@ TERM=xterm
#
# Update logs
#
-2,12,22,32,42,52 * * * * su ports-i386 -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs i386" > /dev/null 2>&1
-5,15,25,35,45,55 * * * * su ports-sparc64 -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs sparc64" > /dev/null 2>&1
-6,16,26,36,46,56 * * * * su ports-ia64 -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs ia64" > /dev/null 2>&1
-8,18,28,38,48,58 * * * * su ports-amd64 -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs amd64" > /dev/null 2>&1
-0,10,20,30,40,50 * * * * su ports-powerpc -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs powerpc" > /dev/null 2>&1
-1,11,21,31,41,51 * * * * su ports-arm -c "lockf -k -t 1 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs arm" > /dev/null 2>&1
-7,17,27,37,47,57 * * * * su ports-mips -c "lockf -k -t 1 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs mips" > /dev/null 2>&1
+##2,12,22,32,42,52 * * * * su ports-i386 -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs i386" > /dev/null 2>&1
+##5,15,25,35,45,55 * * * * su ports-sparc64 -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs sparc64" > /dev/null 2>&1
+##6,16,26,36,46,56 * * * * su ports-ia64 -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs ia64" > /dev/null 2>&1
+##8,18,28,38,48,58 * * * * su ports-amd64 -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs amd64" > /dev/null 2>&1
+##0,10,20,30,40,50 * * * * su ports-powerpc -c "lockf -k -t 0 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs powerpc" > /dev/null 2>&1
+##1,11,21,31,41,51 * * * * su ports-arm -c "lockf -k -t 1 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs arm" > /dev/null 2>&1
+##7,17,27,37,47,57 * * * * su ports-mips -c "lockf -k -t 1 /var/portbuild/errorlogs/lock /var/portbuild/scripts/dologs mips" > /dev/null 2>&1
#
# Compress old logs to save space
#
# XXX MCL this is totally naive and livelocks the machine. XXX TODO
-50 5 * * * lockf -t 0 -k /var/run/busybusybusy.lock find /var/portbuild/*/archive/ -name \*.log -mtime +7 | xargs bzip2 -9f
+#50 5 * * * lockf -t 0 -k /var/run/busybusybusy.lock find /var/portbuild/*/archive/ -name \*.log -mtime +7 | xargs bzip2 -9f
#
# Clean up old chroots on client machines
-30 * * * * /var/portbuild/scripts/do-cleanup-chroots all
+#30 * * * * /var/portbuild/scripts/do-cleanup-chroots all
# Backup ZFS filesystems
# XXX MCL script not yet converted
@@ -29,7 +29,7 @@ TERM=xterm
#50 3 * * * lockf -t 0 -k /var/run/busybusybusy.lock /var/portbuild/scripts/zexpire
# VCS update of ports
-0 */3 * * * lockf -t 0 -k /var/run/updatesnap.ports.lock /var/portbuild/scripts/updatesnap.ports
+##0 */3 * * * lockf -t 0 -k /var/run/updatesnap.ports.lock /var/portbuild/scripts/updatesnap.ports
# VCS update of src
# NOTE: temporarily halt this whenever RELENG_X is being tagged
-0 2 * * * lockf -t 0 -k /var/run/updatesnap.lock /var/portbuild/scripts/updatesnap
+##0 2 * * * lockf -t 0 -k /var/run/updatesnap.lock /var/portbuild/scripts/updatesnap
More information about the svn-src-projects
mailing list