From a43279e2bc2bb1a5bc0876dba53ca99433d1a7e8 Mon Sep 17 00:00:00 2001 From: HITSword Date: Thu, 5 Mar 2020 16:34:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=B8=E8=BD=BD=E4=BC=98=E5=8C=96=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: HITSword --- uninstall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uninstall.sh b/uninstall.sh index 6f94839..72f6991 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -3,17 +3,17 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH echo "杀掉进程" -if ps aux | grep -q -e "udp2raw"; then +if ps aux | grep -q -e "udp2raw" | grep -v grep; then killall udp2raw fi -if ps aux | grep -q -e "udpspeeder"; then +if ps aux | grep -q -e "udpspeeder" | grep -v grep; then killall udpspeeder fi echo "删除所有udptools文件" rm -rf /usr/local/udptools echo "删除相关服务" #判断服务模式 -if pgrep systemd-journal; then +if pgrep systemd-journal > /dev/null; then if ls /usr/lib/systemd/system/ | grep -q -e "udp2raw*.service"; then find /usr/lib/systemd/system/ -name "udp2raw*.service" | xargs -0 rm fi