1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-28 13:48:49 +08:00
Mainflux.mainflux/scripts/launch_mainflux_binaries.sh
Drasko DRASKOVIC 90a141ea41 Fix scripts to use new service names
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-09-05 01:37:28 +02:00

27 lines
418 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 &
http-adapter &
message-writer &
manager &
trap cleanup EXIT
while : ; do sleep 1 ; done