1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00
Files
mariadb-columnstore-engine/oam/install_scripts/mcs-stop-controllernode.sh.in
2020-09-04 11:49:42 +00:00

15 lines
271 B
Bash

#!/bin/bash
/bin/kill -15 "$1"
timeout=$(@ENGINE_BINDIR@/mcsGetConfig SystemConfig DBRMTimeout)
while [ -n "$(pgrep -x controllernode)" ] && [ $timeout -gt 0 ]
do
sleep 1
((--timeout))
done
if [ -n "$(pgrep -x controllernode)" ]; then
/bin/kill -9 "$1"
fi