Files
cbcren2026/restart_service.sh
2026-03-31 01:28:25 -03:00

11 lines
250 B
Bash
Executable File

#!/bin/bash
# Detener servicio existente
pkill -f "python main.py"
sleep 2
# Reiniciar con log visible
cd /home/ren/proyectos/cbc
source .venv/bin/activate
python main.py >> main.log 2>&1 &
echo "Servicio reiniciado. Ver logs con: tail -f main.log"