Initial commit - cleaned for CV
This commit is contained in:
10
restart_service.sh
Executable file
10
restart_service.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user