better restart
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
#list to be killed
|
||||
sudo lsof -i :5000
|
||||
|
||||
#kill all port 5000 apps
|
||||
sudo fuser -k 5000/udp
|
||||
|
||||
# Start main.py in the background
|
||||
TQDM_DISABLE=1 nohup python3 main.py > main.log 2>&1 &
|
||||
MAIN_PID=$!
|
||||
|
||||
Reference in New Issue
Block a user