Permalink
Browse files

Karaf install scripts waits using seconds and not ms by default

  • Loading branch information...
1 parent 2b109a7 commit 4278473edb321cc64c92dce2007b6098867d2f0e @davsclaus davsclaus committed Feb 6, 2012
@@ -23,6 +23,6 @@ mvn-add-repo = {
echo Adding scala-tools repo
mvn-add-repo http://scala-tools.org/repo-releases
-
-sleep 1000
+echo Waiting for scala-tools...
+sleep 5
View
@@ -37,11 +37,11 @@ shell:echo Creating containers
shell:echo 1. Create provider node
fabric:container-create --profile dosgi-provider --parent $APPLICATION dosgi-provider
shell:echo Wait 10s.. be patient
-shell:sleep 10000
+shell:sleep 10
shell:echo 2. Create camel consumer node
fabric:container-create --profile dosgi-camel --parent $APPLICATION dosgi-camel
shell:echo Wait 10s.. be patient
-shell:sleep 10000
+shell:sleep 10
shell:echo done.
@@ -10,6 +10,6 @@ config:update
osgi:refresh --force "OPS4J Pax Logging - Service"
-sleep 1000
+sleep 2
View
@@ -42,20 +42,20 @@ wait-for-service "(&(objectClass=org.apache.karaf.jaas.config.JaasRealm)(org.ap
# or create a new one
if {$1} {
echo "Joining cluster " $1
- shell:sleep 2000
+ shell:sleep 2
fabric:join $1
#config:edit org.fusesource.fabric.zookeeper
#config:propset zookeeper.url $1
#config:update
- #shell:sleep 2000
+ #shell:sleep 2
#zk:create /fabric/configs/containers/$APPLICATION base
#zk:create /fabric/configs/versions/base/containers/$APPLICATION default
} {
echo Creating initial ZooKeeper cluster
fabric:ensemble-create --clean $APPLICATION
echo Wait a few seconds for the cluster to initialize
- shell:sleep 5000
+ shell:sleep 5
# Lets define a bunch of default profiles
echo Creating some default profiles
View
@@ -19,16 +19,16 @@ shell:echo Creating containers
shell:echo 1. Create client node
fabric:container-create --profile camel-client --parent $APPLICATION camel-client
shell:echo Wait 10s.. be patient
-shell:sleep 10000
+shell:sleep 10
shell:echo 2. Create server node listening on port 9090
fabric:container-create --profile server-9090 --parent $APPLICATION server-9090
shell:echo Wait 10s.. be patient
-shell:sleep 10000
+shell:sleep 10
shell:echo 3. Create server node listening on port 9191
fabric:container-create --profile server-9191 --parent $APPLICATION server-9191
shell:echo Wait 10s.. be patient
-shell:sleep 10000
+shell:sleep 10
shell:echo done.
@@ -9,7 +9,7 @@ wait-for-service-timeout = {
$_tracker close
}
wait-for-service = {
- wait-for-service-timeout $1 10000
+ wait-for-service-timeout $1 30
}
wait-for-command = {
wait-for-service "(&(objectClass=org.apache.felix.service.command.Function)(osgi.command.scope=$1)(osgi.command.function=$2))"

0 comments on commit 4278473

Please sign in to comment.