Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Karaf install scripts waits using seconds and not ms by default

  • Loading branch information...
commit 4278473edb321cc64c92dce2007b6098867d2f0e 1 parent 2b109a7
Claus Ibsen davsclaus authored
4 etc/add-scala-tools-repo.karaf
View
@@ -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
4 etc/dosgi.karaf
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.
2  etc/increase-logging.karaf
View
@@ -10,6 +10,6 @@ config:update
osgi:refresh --force "OPS4J Pax Logging - Service"
-sleep 1000
+sleep 2
6 etc/install-fabric.karaf
View
@@ -42,12 +42,12 @@ 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
} {
@@ -55,7 +55,7 @@ wait-for-service "(&(objectClass=org.apache.karaf.jaas.config.JaasRealm)(org.ap
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
6 etc/loadbalancing.karaf
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.
2  etc/wait-for-service.karaf
View
@@ -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))"
Please sign in to comment.
Something went wrong with that request. Please try again.