Add siginit to connector

This commit is contained in:
2024-05-08 12:58:11 +02:00
parent 1386ade3a8
commit 1f8e23206e
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea

View File

@@ -99,6 +99,11 @@ monitor_all() {
kill -SIGKILL $screen_pid 2>/dev/null
continue
fi
# Si le programme est 'connectors', envoyer SIGINT au lieu de SIGKILL
if ps -p $other_pid -o comm= | grep -q "connectors"; then
kill -SIGINT $other_pid 2>/dev/null
continue
fi
kill -SIGKILL $other_pid 2>/dev/null
fi
done