-#!/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
#!/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