Run code from /root/src

This commit is contained in:
Patrick McDonagh
2016-02-26 17:43:46 -06:00
parent ab9da50b90
commit b355f513a9
3 changed files with 9 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
### BEGIN INIT INFO
# Provides: loggers
# Required-Start: $remote_fs $syslog usbMount
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@@ -22,8 +22,8 @@ case "$1" in
# run application you want to start
#python /home/poconsole/src/dataLogger/alarmLogger.py &
#python /home/poconsole/src/dataLogger/dataLogger.py &
/usr/bin/python /home/poconsole/src/dataLogger/alarmLogger.py > /dev/null 2>&1 & echo $! > "/root/alarmLogger.pid"
/usr/bin/python /home/poconsole/src/dataLogger/dataLogger.py > /dev/null 2>&1 & echo $! > "/root/dataLogger.pid"
/usr/bin/python /root/src/dataLogger/alarmLogger.py > /dev/null 2>&1 & echo $! > "/root/alarmLogger.pid"
/usr/bin/python /root/src/dataLogger/dataLogger.py > /dev/null 2>&1 & echo $! > "/root/dataLogger.pid"
;;
stop)

View File

@@ -118,9 +118,9 @@ cd ~/setup
# sudo service isc-dhcp-server start
cd ~/src
git clone https://patrickjmcd@bitbucket.org/poconsole/datalogger.git
git clone https://patrickjmcd@bitbucket.org/poconsole/www.git
git clone https://patrickjmcd@bitbucket.org/poconsole/filemanager.git
git clone http://patrickjmcd@gateway.poconsole.io:7990/scm/poconsole/datalogger.git
git clone http://patrickjmcd@gateway.poconsole.io:7990/scm/poconsole/www.git
git clone http://patrickjmcd@gateway.poconsole.io:7990/scm/poconsole/filemanager.git
cd ~/src/www
npm install

View File

@@ -23,7 +23,7 @@ case "$1" in
then
export NODE_ENV=production
export PATH=/usr/local/bin:$PATH
forever start /home/poconsole/src/www/app.js > /dev/null
forever start /root/src/www/app.js > /dev/null
fi
;;
stop)
@@ -38,4 +38,3 @@ case "$1" in
esac
exit 0