summaryrefslogtreecommitdiff
path: root/examples/cron
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cron')
-rw-r--r--examples/cron/crontab8
-rwxr-xr-xexamples/cron/daily.sh4
-rwxr-xr-xexamples/cron/etch+beryl.sh6
-rwxr-xr-xexamples/cron/etch.sh6
-rwxr-xr-xexamples/cron/snapshots.sh6
-rwxr-xr-xexamples/cron/weekly.sh4
6 files changed, 31 insertions, 3 deletions
diff --git a/examples/cron/crontab b/examples/cron/crontab
new file mode 100644
index 000000000..2d6b052d7
--- /dev/null
+++ b/examples/cron/crontab
@@ -0,0 +1,8 @@
+# /etc/crontab - system-wide crontab
+
+SHELL=/bin/sh
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+# m h dom mon dow user command
+*/1 * * * * root /etc/cron.d/live-webhelper > /dev/null 2>&1
+*/10 * * * * user /usr/share/doc/live-helper/examples/cron/snapshots.sh > /dev/null 2>&1
diff --git a/examples/cron/daily.sh b/examples/cron/daily.sh
index ef5509970..f2b5c09fa 100755
--- a/examples/cron/daily.sh
+++ b/examples/cron/daily.sh
@@ -53,6 +53,8 @@ else
exit 1
fi
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: begin daily build." >> /var/log/live
+
for ARCHITECTURE in ${ARCHITECTURES}
do
for DISTRIBUTION in ${DISTRIBUTIONS}
@@ -164,3 +166,5 @@ done
# Creating current symlink
rm -f "${DESTDIR}"/"${BUILD}"-builds/current
ln -s ${DATE} "${DESTDIR}"/"${BUILD}"-builds/current
+
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: end daily build." >> /var/log/live
diff --git a/examples/cron/etch+beryl.sh b/examples/cron/etch+beryl.sh
index a51bf01ff..28a51b5a6 100755
--- a/examples/cron/etch+beryl.sh
+++ b/examples/cron/etch+beryl.sh
@@ -7,7 +7,7 @@ BUILD="etch+beryl"
# Begin custom defaults
AUTOBUILD="enabled"
-DATE="r0_1.0~a11-1"
+DATE="r0_1.0~a12-1"
DESTDIR="/srv/debian-unofficial/ftp/debian-live"
TEMPDIR="/srv/tmp/live-helper"
@@ -53,6 +53,8 @@ else
exit 1
fi
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: begin etch+beryl build." >> /var/log/live
+
for ARCHITECTURE in ${ARCHITECTURES}
do
for DISTRIBUTION in ${DISTRIBUTIONS}
@@ -173,3 +175,5 @@ done
# Creating current symlink
rm -f "${DESTDIR}"/"${BUILD}"-builds/current
ln -s ${DATE} "${DESTDIR}"/"${BUILD}"-builds/current
+
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: end etch+beryl build." >> /var/log/live
diff --git a/examples/cron/etch.sh b/examples/cron/etch.sh
index 3bf2afd11..cf8ec2eb4 100755
--- a/examples/cron/etch.sh
+++ b/examples/cron/etch.sh
@@ -7,7 +7,7 @@ BUILD="etch"
# Begin custom defaults
AUTOBUILD="enabled"
-DATE="r0_1.0~a11-1"
+DATE="r0_1.0~a12-1"
DESTDIR="/srv/debian-unofficial/ftp/debian-live"
TEMPDIR="/srv/tmp/live-helper"
@@ -53,6 +53,8 @@ else
exit 1
fi
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: begin etch build." >> /var/log/live
+
for ARCHITECTURE in ${ARCHITECTURES}
do
for DISTRIBUTION in ${DISTRIBUTIONS}
@@ -164,3 +166,5 @@ done
# Creating current symlink
rm -f "${DESTDIR}"/"${BUILD}"-builds/current
ln -s ${DATE} "${DESTDIR}"/"${BUILD}"-builds/current
+
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: end etch build." >> /var/log/live
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh
index 199dc2902..760b041fa 100755
--- a/examples/cron/snapshots.sh
+++ b/examples/cron/snapshots.sh
@@ -3,7 +3,7 @@
# Needs: build-essential fakeroot lsb-release svn [...]
# Static variables
-PACKAGES="live-helper live-initramfs live-webbuilder"
+PACKAGES="live-helper live-initramfs live-webhelper"
DEBEMAIL="debian-live-devel@lists.alioth.debian.org"
EMAIL="debian-live-devel@lists.alioth.debian.org"
@@ -36,6 +36,8 @@ trap "test -f ${SERVER}/Archive-Update-in-Progress && rm -f ${SERVER}/Archive-Up
# Creating lock file
echo "${DATE_START}" > "${SERVER}"/Archive-Update-in-Progress
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: begin snapshot build." >> /var/log/live
+
# Processing packages
for PACKAGE in ${PACKAGES}
do
@@ -128,3 +130,5 @@ EOF
# Removing build directory
rm -rf "${TEMPDIR}"
+
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: end snapshot build." >> /var/log/live
diff --git a/examples/cron/weekly.sh b/examples/cron/weekly.sh
index d3f9d79e1..19c1054aa 100755
--- a/examples/cron/weekly.sh
+++ b/examples/cron/weekly.sh
@@ -53,6 +53,8 @@ else
exit 1
fi
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: begin weekly build." >> /var/log/live
+
for ARCHITECTURE in ${ARCHITECTURES}
do
for DISTRIBUTION in ${DISTRIBUTIONS}
@@ -164,3 +166,5 @@ done
# Creating current symlink
rm -f "${DESTDIR}"/"${BUILD}"-builds/current
ln -s ${DATE} "${DESTDIR}"/"${BUILD}"-builds/current
+
+echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: end weekly build." >> /var/log/live