From 710966475f7506f99c3114057d9d4c86f148067b Mon Sep 17 00:00:00 2001 From: Eyal Date: Tue, 23 Jan 2018 13:14:42 +0200 Subject: [PATCH] change the kill mode for vitrage-graph service since vitrage graph creates child processes we want to kill the children processes if systemd cannot stop the service Change-Id: I93a5d680fe93b929f9bc83489d7edb636205846d --- devstack/plugin.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 6ca60f59a..85797cc17 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -310,6 +310,16 @@ function start_vitrage { write_systemd_dependency vitrage-graph vitrage-collector + change_systemd_kill_mode vitrage-graph + +} + +function change_systemd_kill_mode { + local service=$1 + local systemd_service="devstack@$service.service" + local unitfile="$SYSTEMD_DIR/$systemd_service" + + iniset -sudo $unitfile "Service" "KillMode" "control-group" } function write_systemd_dependency {