Mercurial > hg > rlgwebd
comparison rlgwebd @ 141:1a156a7746a7
RLGWebD: use NODE_PATH to find modules.
author | John "Elwin" Edwards |
---|---|
date | Wed, 14 Aug 2013 08:04:36 -0700 |
parents | dcd07c1d846a |
children | 5483d413a45b |
comparison
equal
deleted
inserted
replaced
140:789c094675f4 | 141:1a156a7746a7 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 NODE_PATH=/usr/lib/node_modules | |
3 LOGFILE=/var/local/rlgwebd/log | 4 LOGFILE=/var/local/rlgwebd/log |
4 CTLSOCKET=/var/local/rlgwebd/ctl | 5 CTLSOCKET=/var/local/rlgwebd/ctl |
5 RLGWEBDJS=./rlgwebd.js | 6 RLGWEBDJS=./rlgwebd.js |
7 | |
8 export NODE_PATH | |
6 | 9 |
7 if [ $UID != 0 ] | 10 if [ $UID != 0 ] |
8 then | 11 then |
9 echo "$0 needs to run as root." >&2 | 12 echo "$0 needs to run as root." >&2 |
10 exit 1 | 13 exit 1 |