diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:29:32 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:29:32 +0200 |
commit | 6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f (patch) | |
tree | 814ad3da280833de03535ca04cf5068da1d31822 /meta-iot/recipes-web/the-thing-system/steward/start-steward | |
download | meta-eca-daisy-enea.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta-iot/recipes-web/the-thing-system/steward/start-steward')
-rwxr-xr-x | meta-iot/recipes-web/the-thing-system/steward/start-steward | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-iot/recipes-web/the-thing-system/steward/start-steward b/meta-iot/recipes-web/the-thing-system/steward/start-steward new file mode 100755 index 0000000..1022656 --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward/start-steward | |||
@@ -0,0 +1,22 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | DIR=`dirname $0` | ||
4 | |||
5 | if [ ! -f $DIR/server.js ]; then | ||
6 | echo "$0: Cannot find $DIR/server.js" | ||
7 | exit -1 | ||
8 | fi | ||
9 | |||
10 | if [ -z "$THE_THING_SYSTEM" ]; then | ||
11 | THE_THING_SYSTEM=/opt/TheThingSystem | ||
12 | export THE_THING_SYSTEM | ||
13 | fi | ||
14 | |||
15 | if [ -z "$NODE_PATH" ]; then | ||
16 | NODE_PATH=${THE_THING_SYSTEM}/steward | ||
17 | export NODE_PATH | ||
18 | fi | ||
19 | |||
20 | cd $DIR | ||
21 | node $DIR/server.js $@ | ||
22 | exit $? | ||