mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +08:00
28 lines
472 B
Bash
Executable File
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
|
|
|
|
|