mirror of
https://github.com/modelec/Initialisation.git
synced 2026-01-18 15:57:20 +01:00
Add siginit to connector
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.idea
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user