Log pypi-mirror cron job output to syslog

Rather than relying on e-mail working, we can just record the results in
syslog using the logger command. This will allow debugging the job.

Change-Id: I96cbda2ab27a8ce4d06648f728c933c56263014b
This commit is contained in:
Clint Byrum 2013-11-21 09:47:44 -08:00
parent 057e0622b1
commit b13d3b6e23

View File

@ -47,5 +47,5 @@ chmod a+rx /var/cache/pypi-mirror
cat <<EOF > /etc/cron.d/pypi-mirror-update
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
15 * * * * pypi-mirror run-mirror -b remotes/origin/master --verbose -c /etc/pypi-mirror/mirror.yaml
15 * * * * pypi-mirror run-mirror -b remotes/origin/master --verbose -c /etc/pypi-mirror/mirror.yaml 2>&1 | logger -t pypi-mirror
EOF