From 778685fca0d2f359e0f6b5fb1b288ba81a18de08 Mon Sep 17 00:00:00 2001 From: Drasko DRASKOVIC Date: Wed, 27 Sep 2017 18:49:52 +0200 Subject: [PATCH] Fix mainflux-launch.sh script Signed-off-by: Drasko DRASKOVIC --- bin/mainflux-launch.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/bin/mainflux-launch.sh b/bin/mainflux-launch.sh index 36e8f948..837bc443 100755 --- a/bin/mainflux-launch.sh +++ b/bin/mainflux-launch.sh @@ -1,23 +1,28 @@ #!/bin/bash ### -# Launches all Mainflux Go binaries -# when they are installed globally. +# Launches all Mainflux Go binaries when they are installed globally. +# Also launches NATS broker instance, expecting that +# `gnatsd` is installed globally. # -# Expects that influxDB and MongoDB are already installed and running. +# Expects that Cassandra is already installed and running. # # Does not launch NodeJS MQTT service - this one must be launched by hand for now. ### -# Kil all mainflux-* stuff +# Kill all mainflux-* stuff function cleanup { pkill mainflux } gnatsd & -http-adapter & -message-writer & -manager & +# Wait a bit for NATS to be on +sleep 0.1 +mainflux-http & +mainflux-manager & +mainflux-normalizer & +mainflux-writer & +mainflux-coap & trap cleanup EXIT