Sleep for 3 seconds after starting the service
authorArt Cancro <ajc@citadel.org>
Tue, 19 Dec 2006 04:43:56 +0000 (04:43 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 19 Dec 2006 04:43:56 +0000 (04:43 +0000)
before testing it

citadel/setup.c

index 43c4358a9ad0befcf023bda54453016079f3cc3e..54474cd64239669fb3dbb167277e1462dbf6324f 100644 (file)
@@ -1353,6 +1353,7 @@ NEW_INST:
 
                if (!access("/etc/init.d/citadel", X_OK)) {
                        system("/etc/init.d/citadel start");
+                       sleep(3);
                }
 
                if (test_server() == 0) {