bin: add kill-port script
This commit is contained in:
10
bin/kill-port
Executable file
10
bin/kill-port
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
PORT="$1"
|
||||||
|
|
||||||
|
if [[ "$PORT" == "" ]]; then
|
||||||
|
echo "Usage: kill-port {port}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
fuser -k "$PORT"/tcp
|
||||||
Reference in New Issue
Block a user