Run code from /root/src
This commit is contained in:
8
loggers
8
loggers
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: loggers
|
# Provides: loggers
|
||||||
# Required-Start: $remote_fs $syslog usbMount
|
# Required-Start: $remote_fs $syslog
|
||||||
# Required-Stop: $remote_fs $syslog
|
# Required-Stop: $remote_fs $syslog
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
@@ -22,8 +22,8 @@ case "$1" in
|
|||||||
# run application you want to start
|
# run application you want to start
|
||||||
#python /home/poconsole/src/dataLogger/alarmLogger.py &
|
#python /home/poconsole/src/dataLogger/alarmLogger.py &
|
||||||
#python /home/poconsole/src/dataLogger/dataLogger.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 /root/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/dataLogger.py > /dev/null 2>&1 & echo $! > "/root/dataLogger.pid"
|
||||||
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
@@ -40,4 +40,4 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
6
setup.sh
6
setup.sh
@@ -118,9 +118,9 @@ cd ~/setup
|
|||||||
# sudo service isc-dhcp-server start
|
# sudo service isc-dhcp-server start
|
||||||
|
|
||||||
cd ~/src
|
cd ~/src
|
||||||
git clone https://patrickjmcd@bitbucket.org/poconsole/datalogger.git
|
git clone http://patrickjmcd@gateway.poconsole.io:7990/scm/poconsole/datalogger.git
|
||||||
git clone https://patrickjmcd@bitbucket.org/poconsole/www.git
|
git clone http://patrickjmcd@gateway.poconsole.io:7990/scm/poconsole/www.git
|
||||||
git clone https://patrickjmcd@bitbucket.org/poconsole/filemanager.git
|
git clone http://patrickjmcd@gateway.poconsole.io:7990/scm/poconsole/filemanager.git
|
||||||
|
|
||||||
cd ~/src/www
|
cd ~/src/www
|
||||||
npm install
|
npm install
|
||||||
|
|||||||
5
website
5
website
@@ -23,7 +23,7 @@ case "$1" in
|
|||||||
then
|
then
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
export PATH=/usr/local/bin:$PATH
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
@@ -37,5 +37,4 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user