Skip to content

Commit 2da72b5

Browse files
author
Maurice
committed
workflow: add list and kill processes at port workflows
1 parent 6c70f4d commit 2da72b5

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Kill processes at port
2+
description: Kill processes at a port.
3+
author: Maurice Gerhardt
4+
author_url: https://github.com/heymage
5+
tags: ["macos", "shell"]
6+
shells:
7+
- zsh
8+
- bash
9+
command: kill $(lsof -t -i:{{port}})
10+
arguments:
11+
- name: port
12+
description: The port where processes should be killed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: List processes at port
2+
description: List processes at a port to see if there are running processes.
3+
author: Maurice Gerhardt
4+
author_url: https://github.com/heymage
5+
tags: ["macos", "shell"]
6+
shells:
7+
- zsh
8+
- bash
9+
command: lsof -i:{{port}}
10+
arguments:
11+
- name: port
12+
description: The port that should be checked

0 commit comments

Comments
 (0)