From 25c8ef797735d612f1c4d59e127024292985f412 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Mon, 29 Apr 2024 14:09:23 +0200 Subject: [PATCH] kill prog --- startup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/startup.sh b/startup.sh index 618a733..408d3b2 100644 --- a/startup.sh +++ b/startup.sh @@ -98,15 +98,15 @@ monitor_all() { if [ "$other_pid" != "$pid" ]; then if ps -p $other_pid -o comm= | grep -q "camera"; then screen_pid=$(ps -ef | grep "SCREEN -dmS camera" | grep -v grep | awk '{print $2}') - kill -SIGINT $screen_pid 2>/dev/null + kill -SIGKILL $screen_pid 2>/dev/null continue fi - kill -SIGINT $other_pid 2>/dev/null + kill -SIGKILL $other_pid 2>/dev/null fi done echo "Stopping the TCP server" for server_pid in "${pidserver[@]}"; do - kill -SIGINT $server_pid 2>/dev/null + kill -SIGKILL $server_pid 2>/dev/null done return fi