1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-09 19:29:29 +08:00

Fix mainflux-launch.sh script

Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
This commit is contained in:
Drasko DRASKOVIC 2017-09-27 18:49:52 +02:00
parent df61bdccad
commit 778685fca0

View File

@ -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