mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 08:54:19 +00:00
Update: stop processes running on port 80 and 443
This commit is contained in:
parent
535c306de1
commit
1ef1990035
1 changed files with 9 additions and 3 deletions
|
|
@ -1,7 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PID=$(sudo lsof -t -i:5000)
|
||||
HTTP_PID=$(sudo lsof -t -i:80)
|
||||
HTTPS_PID=$(sudo lsof -t -i:443)
|
||||
|
||||
if [ -n "$PID" ]; then
|
||||
sudo kill -9 $PID
|
||||
|
||||
if [ -n "$HTTP_PID" ]; then
|
||||
sudo kill -9 $HTTP_PID
|
||||
fi
|
||||
|
||||
if [ -n "$HTTPS_PID" ]; then
|
||||
sudo kill -9 $HTTPS_PID
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue