1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-20 01:42:27 +03:00
Files
mariadb-columnstore-engine/oam/install_scripts/mcs-stop-controllernode.sh.in
Roman Nozdrin 2915f83a46 MCOL-3914 Replaced umbrella systemd service with a shell that starts/stops separate
MCS systemd units.

Add stop for StorageManager systemd unit.
2020-06-04 17:16:55 +00:00

15 lines
255 B
Bash

#!/bin/bash
/bin/kill -15 "$1"
timeout=$(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