summaryrefslogtreecommitdiff
path: root/server/killit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'server/killit.sh')
-rwxr-xr-xserver/killit.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/killit.sh b/server/killit.sh
new file mode 100755
index 0000000..ad38a6b
--- /dev/null
+++ b/server/killit.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+ss -tlanp src 127.0.0.1:1337 | tr ' ' '\n' | grep pid | tr , '\n' | grep pid | cut -d= -f2- | xargs kill