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)
@@ -40,4 +40,4 @@ case "$1" in
;;
esac
exit 0
exit 0