1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-29 13:49:28 +08:00
Mainflux.mainflux/bin/launch_mainflux_binaries.sh

27 lines
418 B
Bash
Raw Normal View History

#!/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