update start srcipts in manage_scripts.sh

This commit is contained in:
2025-04-25 18:12:30 +10:00
parent 9b1591e2e8
commit 36829eaeb8
+8 -2
View File
@@ -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