~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/Docker-stuff/killall -rwxr-xr-x 186 bytes
ca00f282 — Sam Trenholme MaraDNS release 3.5.0021 4 months ago
                                                                                
1
2
3
4
5
6
7
#!/bin/sh

# Since CentOS 8 killall is broken, rewrite it as a shell script
LIST=$( ps auxw | awk '{print $2 " " $11}' | grep "$1" | awk '{print $1}' )
for a in $LIST ; do
	kill $a
done