]> git.donarmstrong.com Git - dak.git/commitdiff
let cron.reboot sleep a bit to have all resources ready
authorJoerg Jaspert <joerg@debian.org>
Mon, 1 Oct 2012 14:29:05 +0000 (16:29 +0200)
committerJoerg Jaspert <joerg@debian.org>
Mon, 1 Oct 2012 14:29:05 +0000 (16:29 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/cron.reboot

index 26d507e47c0263bcd28930deb2650bf90c653923..78c0e9ba62e3cfbbb0386e7f6541474aae8fe63b 100755 (executable)
@@ -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