1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-27 13:48:49 +08:00
Mainflux.mainflux/scripts/launch_mainflux_binaries.sh
Drasko DRASKOVIC d9cad2b4b3 Add comments
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-06-03 01:29:56 +02:00

28 lines
472 B
Bash
Executable File

#!/bin/bash
###
# Launches all Mainflux Go binaries
# when they are installed globally.
#
# Expects that influxDB and MongoDB are already installed and running.
#
# Does not launch NodeJS MQTT service - this one must be launched by hand for now.
###
# Kil all mainflux-* stuff
function cleanup {
pkill mainflux
}
gnatsd &
mainflux-http-sender &
mainflux-influxdb-writer &
mainflux-influxdb-reader &
mainflux-manager &
trap cleanup EXIT
while : ; do sleep 1 ; done