1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-02 22:17:10 +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 #!/bin/bash
### ###
# Launches all Mainflux Go binaries # Launches all Mainflux Go binaries when they are installed globally.
# 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. # 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 { function cleanup {
pkill mainflux pkill mainflux
} }
gnatsd & gnatsd &
http-adapter & # Wait a bit for NATS to be on
message-writer & sleep 0.1
manager & mainflux-http &
mainflux-manager &
mainflux-normalizer &
mainflux-writer &
mainflux-coap &
trap cleanup EXIT trap cleanup EXIT