# Livermore Scanner Cron Jobs
# Add these to your crontab: crontab -e
# Then paste the lines below (replace USERNAME with your actual username)

# ═══════════════════════════════════════════════════════════
# Start scanner on server reboot
# ═══════════════════════════════════════════════════════════
@reboot sleep 60 && /home/USERNAME/public_html/livermore/start_scanner.sh

# ═══════════════════════════════════════════════════════════
# Check every 5 minutes and restart if down
# ═══════════════════════════════════════════════════════════
*/5 * * * * /home/USERNAME/check_livermore.sh

# ═══════════════════════════════════════════════════════════
# Daily restart at 4 AM (optional - helps clear memory)
# ═══════════════════════════════════════════════════════════
0 4 * * * /home/USERNAME/public_html/livermore/start_scanner.sh

# ═══════════════════════════════════════════════════════════
# Clean old logs weekly (every Sunday at 2 AM)
# ═══════════════════════════════════════════════════════════
0 2 * * 0 find /home/USERNAME -name "*.log" -mtime +30 -delete

# ═══════════════════════════════════════════════════════════
# INSTALLATION INSTRUCTIONS:
# ═══════════════════════════════════════════════════════════
# 1. SSH into your server: ssh username@adekay.com
# 2. Find your username: whoami
# 3. Edit crontab: crontab -e
# 4. Copy the lines above (replacing USERNAME)
# 5. Save and exit (Ctrl+X, Y, Enter)
# 6. Verify: crontab -l
