* Add a sleep before initialising the Trac database. This shouldn't

be necessary, because waitForJob shouldn't return until Postgres is
  up and running, but we still get errors like this:

postgresql: running command: initctl status postgresql
postgresql: exit status 0
postgresql: running command: createdb trac
postgresql# createdb: could not connect to database postgres: FATAL:  the database system is starting up
postgresql: exit status 1
  

svn path=/nixos/trunk/; revision=19329
This commit is contained in:
Eelco Dolstra 2010-01-10 16:31:19 +00:00
parent 6cfe5e2746
commit dcdbf68a68

View File

@ -56,6 +56,7 @@
startAll;
$postgresql->waitForJob("postgresql");
sleep 10; # !!! should not be needed
$postgresql->mustSucceed("createdb trac");
$webserver->mustSucceed("mkdir -p /repos/trac");