Update stop_server.sh

This commit is contained in:
Chigozirim Igweamaka 2024-05-18 09:24:31 +01:00 committed by GitHub
parent fc236c1c30
commit e8674eb729

View file

@ -1 +1,5 @@
sudo kill -9 $(sudo lsof -t -i:5000)
PID=$(sudo lsof -t -i:5000)
if [ -n "$PID" ]; then
sudo kill -9 $PID
fi