Skip to content

Commit b6e94ab

Browse files
DrLynchbradley-erickson
authored andcommitted
Lynch/processorupdate (#122)
1 parent 375ef07 commit b6e94ab

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

servermanagement/RunLearningObserver.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#!/usr/bin/env bash
32
# ===============================
43
# RunLearningObserver.sh
@@ -13,23 +12,32 @@
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"
1817
LEARNING_OBSERVER_LOC="/usr/local/share/projects/WritingObserver/Repositories/ArgLab_writing_observer/learning_observer"
1918
LOGFILE_DEST="/usr/local/share/projects/WritingObserver/Repositories/ArgLab_writing_observer/learning_observer/learning_observer/logs"
2019

20+
2121
# Make the logfile name
2222
# ---------------------------------------
2323
LOG_DATE=$(date "+%m-%d-%Y--%H-%M-%S")
2424
LOGFILE_NAME="$LOGFILE_DEST/learning_observer_service_$LOG_DATE.log"
2525
echo $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
# --------------------------------------
3032
echo "Running Learning Observer Service..."
3133
cd $LEARNING_OBSERVER_LOC
34+
3235
source $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+
3341
nohup python learning_observer > $LOGFILE_NAME 2>&1 &
3442
PROCESS_ID=$!
3543
echo $PROCESS_ID > $LOGFILE_DEST/run.pid

0 commit comments

Comments
 (0)