1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-01 13:48:56 +08:00

Merge pull request #107 from mainflux/launch

Fix mainflux-launch.sh script
This commit is contained in:
Drasko DRASKOVIC 2017-09-27 20:02:55 +02:00 committed by GitHub
commit ea3fb4b781

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