X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Fkillall;fp=bin%2Fkillall;h=0000000000000000000000000000000000000000;hp=89f5090f6a07f9cb5a85fe4f55eb49751491bf81;hb=bfbeacf31504b04e95dcebd3e9ec96ac225c9bd8;hpb=0cc7abac77065b9d06676d386c08c128cf1983b9 diff --git a/bin/killall b/bin/killall deleted file mode 100755 index 89f5090..0000000 --- a/bin/killall +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/sh -[ -x /usr/bin/killall ] && exec /usr/bin/killall "$@" -sig="" -if echo "$1" | grep >/dev/null -- '^-';then - sig="$1" - shift -fi -pgrep -l "$@" -if pkill $sig "$@";then true;else - echo "$*: no process killed" - exit 1 -fi -if pgrep >/dev/null -l "$@";then - echo "FAIL:" - pgrep -l "$@" -else - echo OK -fi -exit 0