X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcrontab;h=ff4832299a33a2fe98252b00b26a7bdd3390f618;hb=85fba156008926ec3f8fba9959a576b764ab6cac;hp=4c0b96932650cef52928825b1872233e2199fab3;hpb=6de9dda69133cf474a9db71bc1bf9d1e4dfe04b5;p=dak.git diff --git a/config/debian/crontab b/config/debian/crontab index 4c0b9693..ff483229 100644 --- a/config/debian/crontab +++ b/config/debian/crontab @@ -1,18 +1,27 @@ MAILTO=cron@ftp-master.debian.org PATH=/usr/local/bin:/usr/bin:/bin +SHELL=/bin/bash +configdir=/srv/ftp-master.debian.org/dak/config/debian + # m h dom mon dow command -2,17,32,47 * * * * /srv/ftp-master.debian.org/dak/config/debian/cron.unchecked -0 * * * * /srv/ftp-master.debian.org/dak/config/debian/cron.hourly -52 1,7,13,19 * * * /srv/ftp-master.debian.org/dak/config/debian/cron.dinstall -#### And an alternate line, for the times the release team wants it half an hour late. -####22 2,8,14,20 * * * /srv/ftp-master.debian.org/dak/config/debian/cron.dinstall -0 12 * * 0 /srv/ftp-master.debian.org/dak/config/debian/cron.weekly -6 0 1 * * /srv/ftp-master.debian.org/dak/config/debian/cron.monthly -@reboot /srv/ftp-master.debian.org/dak/config/debian/cron.reboot +2,17,32,47 * * * * $configdir/cronscript unchecked +0 * * * * $configdir/cronscript hourly +52 1,7,13,19 * * * $configdir/cronscript dinstall +###### And an alternate line, for the times the release team wants it half an hour late. +######22 2,9,14,20 * * * $configdir/cronscript dinstall +# And for release time, turn off cron after final dinstall +#45 9 * * * /home/dak/bin/cronoff +3 9 * * * $configdir/cronscript daily +0 12 * * 0 $configdir/cronscript weekly +6 0 1 * * $configdir/cronscript monthly +3 0 1 1 * $configdir/cronscript yearly + +## Reboot cron doesn't use cronscript +@reboot $configdir/cron.reboot 0 0 * * * crontab -l > ~/crontab.out # We do like our queued and make sure it will always be there. # Luckily it checks itself and doesn't start if it already runs -@reboot /srv/queued/debianqueued-0.9/debianqueued -*/10 * * * * /srv/queued/debianqueued-0.9/debianqueued 2>/dev/null +@reboot sudo -u dak-unpriv /srv/upload.debian.org/queued/debianqueued +*/10 * * * * sudo -u dak-unpriv /srv/upload.debian.org/queued/debianqueued 2>/dev/null