/[webwml]/cron/often
ViewVC logotype

Contents of /cron/often

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Aug 30 11:50:13 2008 UTC (4 years, 8 months ago) by joy
Branch: MAIN
Changes since 1.5: +4 -4 lines
move logs to log/
1 #!/bin/bash -e
2
3 # see README for more information
4
5 umask 002
6 . /org/www.debian.org/cron/common.sh
7
8 # locking
9 if lockfile -! -l 43200 -r 0 "$crondir/often.lock"; then
10 echo `hostname` is unable to start update, lock file exists.
11 exit 1
12 fi
13 trap "rm -f $crondir/often.lock" exit
14
15 # rotate the previous log file
16 savelog -g debwww -m 664 $crondir/log/often.log &> /dev/null
17
18 export CVS_RSH=ssh
19 cd $crondir
20 cvs update -d -P 2>&1 | tee -a $crondir/log/often.log >/dev/null
21
22 cd parts
23 run-parts --verbose $crondir/parts >> $crondir/log/often.log 2>&1
24
25 echo " *** the often cron job is done *** " >> $crondir/log/often.log

  ViewVC Help
Powered by ViewVC 1.1.5