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
This commit is contained in:
Eyal 2018-01-23 13:14:42 +02:00
parent 27f3d40465
commit 710966475f

View File

@ -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 {