File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
21#! /usr/bin/env bash
32# ===============================
43# RunLearningObserver.sh
1312
1413# System Variables
1514# --------------------------------------
16- VIRTUALENV_PATH=" /usr/local/share/projects/WritingObserver/VirtualENVs/WOvenv "
15+ VIRTUALENV_PATH=" /usr/local/share/projects/WritingObserver/VENV/WOVenv "
1716# VIRTUALENV_PYTHON="/usr/local/share/Projects/WritingObserver/VirtualENVs/learning_observer/bin/python3.9"
1817LEARNING_OBSERVER_LOC=" /usr/local/share/projects/WritingObserver/Repositories/ArgLab_writing_observer/learning_observer"
1918LOGFILE_DEST=" /usr/local/share/projects/WritingObserver/Repositories/ArgLab_writing_observer/learning_observer/learning_observer/logs"
2019
20+
2121# Make the logfile name
2222# ---------------------------------------
2323LOG_DATE=$( date " +%m-%d-%Y--%H-%M-%S" )
2424LOGFILE_NAME=" $LOGFILE_DEST /learning_observer_service_$LOG_DATE .log"
2525echo $LOG_NAME ;
2626
27-
27+ DOC_PROCESSOR_LOG=" $LOGFILE_DEST /document_processor_service_$LOG_DATE .log"
28+ echo $DOC_PROCESSOR_LOG ;
29+
2830# Now run the thing.
2931# --------------------------------------
3032echo " Running Learning Observer Service..."
3133cd $LEARNING_OBSERVER_LOC
34+
3235source $VIRTUALENV_PATH /bin/activate
36+
37+ nohup python learning_observer/doc_processor.py > $DOC_PROCESSOR_LOG 2>&1 &
38+ DOC_PROCESS_ID=$!
39+ echo $DOC_PROCESS_ID > $LOGFILE_DEST /doc_run.pid
40+
3341nohup python learning_observer > $LOGFILE_NAME 2>&1 &
3442PROCESS_ID=$!
3543echo $PROCESS_ID > $LOGFILE_DEST /run.pid
You can’t perform that action at this time.
0 commit comments