From: Joerg Jaspert <joerg@debian.org>
Date: Mon, 1 Oct 2012 14:29:05 +0000 (+0200)
Subject: let cron.reboot sleep a bit to have all resources ready
X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=b336f01839b4d4a860f272afb75ede307f4a6274;p=dak.git

let cron.reboot sleep a bit to have all resources ready

Signed-off-by: Joerg Jaspert <joerg@debian.org>
---

diff --git a/config/debian/cron.reboot b/config/debian/cron.reboot
index 26d507e4..78c0e9ba 100755
--- a/config/debian/cron.reboot
+++ b/config/debian/cron.reboot
@@ -26,6 +26,11 @@ set -u
 # the important part here)
 set -E
 
+# We sleep a while here, as cron - and as such @reboot jobs like this
+# one - are started pretty early during boot. With parts of the system
+# still missing, most noticable for us is a not-yet-started postgres...
+sleep 75
+
 # import the general variable set.
 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
 . $SCRIPTVARS