Project

General

Profile

Statistics
| Branch: | Revision:

gdp-if / mqtt-gateway / start-mqtt-gdp-gateways.sh @ master

History | View | Annotate | Download (972 Bytes)

1 ec79363a Eric Allman
#!/bin/sh
2 a164b97b Eric Allman
{ test -r /usr/local/etc/gdp.conf.sh && . /usr/local/etc/gdp.conf.sh; } ||
3
	{ test -r /etc/gdp.conf.sh && . /etc/gdp.conf.sh; }
4 8d59f16d Eric Allman
: ${GDP_ROOT:=/usr}
5 ec79363a Eric Allman
6
#
7
#  Configuration for MQTT-GDP gateway
8
#
9
#	Right now this is just a shell script to start the
10 76c4f0d8 Eric Allman
#	individual instances.
11 ec79363a Eric Allman
#
12 76c4f0d8 Eric Allman
#	The $START script takes at least three arguments:
13 ec79363a Eric Allman
#		* The name of the host holding the MQTT broker
14
#		* The root name of the logs that will be
15
#		  created.  This will have ".device.<dev>"
16
#		  appended, where <dev> is given in the third
17
#		  through Nth arguments.
18
#		* The names of the devices from that broker
19 76c4f0d8 Eric Allman
#		  (at least one).
20 ec79363a Eric Allman
#
21
#	It is up to the administrator to make sure there are no
22
#	duplicates.  This can occur if one device is in range of
23
#	two or more gateways.
24
#
25
26 8d59f16d Eric Allman
START="sh $GDP_ROOT/sbin/start-mqtt-gdp-gateway.sh"
27 ec79363a Eric Allman
28 a164b97b Eric Allman
$START uhkbbb001.eecs.berkeley.edu &
29
$START uhkbbb002.eecs.berkeley.edu &
30
$START uhkbbb004.eecs.berkeley.edu &
31 3322f258 Eric Allman
$START swarmnuc1002.eecs.berkeley.edu &
32 68c8926b Nitesh Mor
wait