From 5e136c735d797a4737167a3ba8bd209b42d0607d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 8 Sep 2022 12:27:21 +0200 Subject: [PATCH] wait #5433 @0.25 --- app/stop.sh | 19 ++----------------- teams/stop.sh | 17 +---------------- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/app/stop.sh b/app/stop.sh index 9e2c72c..3d52793 100644 --- a/app/stop.sh +++ b/app/stop.sh @@ -1,17 +1,2 @@ -#!/bin/bash - -#Find the Process ID for zoomapp running instance -PID=`ps -ef | grep zoom-backend | grep -v grep | awk '{print $2}'` - -#Find the full command -CMD=`ps -ef | grep zoom-backend | grep -v grep | awk '{c="";for(i=8;i<=NF;i++) c=c $i" "; print c}' | sed 's/\s*$//'` - -if [[ -z "$PID" ]] -then - echo "The app is not up." - -else - pkill -9 -f "$CMD" - echo "PID $PID is killed." - -fi +#!/bin/sh +pkill -f -9 zoom-backend \ No newline at end of file diff --git a/teams/stop.sh b/teams/stop.sh index 2d3faa5..2d661ed 100644 --- a/teams/stop.sh +++ b/teams/stop.sh @@ -1,17 +1,2 @@ #!/bin/sh - -#Find the Process ID for zoomapp running instance -PID=`ps -ef | grep teams-backend | grep -v grep | awk '{print $2}'` - -#Find the full command -CMD=`ps -ef | grep teams-backend | grep -v grep | awk '{c="";for(i=8;i<=NF;i++) c=c $i" "; print c}' | sed 's/\s*$//'` - -if [[ -z "$PID" ]] -then - echo "The app is not up." - -else - pkill -9 -f "$CMD" - echo "PID $PID is killed." - -fi +pkill -f -9 teams-backend \ No newline at end of file -- 2.39.5