gdp-if / mqtt-gateway / start-mqtt-gdp-gateways.sh @ master
History | View | Annotate | Download (972 Bytes)
1 |
#!/bin/sh |
---|---|
2 |
{ 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 |
: ${GDP_ROOT:=/usr} |
5 |
|
6 |
# |
7 |
# Configuration for MQTT-GDP gateway |
8 |
# |
9 |
# Right now this is just a shell script to start the |
10 |
# individual instances. |
11 |
# |
12 |
# The $START script takes at least three arguments: |
13 |
# * 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 |
# (at least one). |
20 |
# |
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 |
START="sh $GDP_ROOT/sbin/start-mqtt-gdp-gateway.sh" |
27 |
|
28 |
$START uhkbbb001.eecs.berkeley.edu & |
29 |
$START uhkbbb002.eecs.berkeley.edu & |
30 |
$START uhkbbb004.eecs.berkeley.edu & |
31 |
$START swarmnuc1002.eecs.berkeley.edu & |
32 |
wait |