/[webwml]/cron/often
ViewVC logotype

Contents of /cron/often

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations) (download)
Thu Apr 4 16:23:44 2013 UTC (6 weeks, 3 days ago) by taffit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +0 -0 lines
FILE REMOVED
State that it moved to Git
1 joy 1.1 #!/bin/bash -e
2    
3     # see README for more information
4    
5     umask 002
6 rhonda-guest 1.9 . /srv/www.debian.org/cron/common.sh
7 joy 1.1
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 debwww 1.7 savelog -g debwww -m 664 $crondir/log/often.log > /dev/null
17 joy 1.1
18 debwww 1.8 # making the time of job start explicit
19     date > $crondir/log/often.log
20    
21 joey 1.5 export CVS_RSH=ssh
22 joy 1.4 cd $crondir
23 joy 1.6 cvs update -d -P 2>&1 | tee -a $crondir/log/often.log >/dev/null
24 joy 1.2
25 joy 1.4 cd parts
26 joy 1.6 run-parts --verbose $crondir/parts >> $crondir/log/often.log 2>&1
27 joy 1.1
28 joy 1.6 echo " *** the often cron job is done *** " >> $crondir/log/often.log
29 debwww 1.8
30     # making the time of job stop explicit
31     date >> $crondir/log/often.log

  ViewVC Help
Powered by ViewVC 1.1.5