From: Vincent Vanwaelscappel Date: Thu, 8 Sep 2022 10:27:21 +0000 (+0200) Subject: wait #5433 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;p=sycomore-symphony.git wait #5433 @0.25 --- 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