update start srcipts in manage_scripts.sh

my-fix-branch
Shane 8 months ago
parent 9b1591e2e8
commit 36829eaeb8
  1. 10
      manage_scripts.sh

@ -39,8 +39,14 @@ start_scripts() {
log "Starting scripts..." log "Starting scripts..."
cd "$BASE_DIR" cd "$BASE_DIR"
source venv/bin/activate source venv/bin/activate
python3 foodie_automator_reddit.py & python3 foodie_automator_rss.py & python3 foodie_automator_google.py & # Find all foodie_automator_*.py scripts and start them
log "Scripts started." for script in foodie_automator_*.py; do
if [ -f "$script" ]; then
log "Starting $script..."
nohup python3 "$script" >> "${script%.py}.log" 2>&1 &
fi
done
log "All scripts started."
} }
# Update dependencies # Update dependencies

Loading…
Cancel
Save