Fix TimeoutStopSec to integer convertion
Trivial-fix. Change-Id: I5a3c75b5340b8487a9dfa1204b82b835a3e2596e Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com> (cherry picked from commit 3f08bb38f11f953b8a4a43b21d30ba385bebf3a1)
This commit is contained in:
parent
dd8bcbc54c
commit
2d5323d5a2
|
@ -84,7 +84,7 @@ def service_create(container, cconfig, sysdir=constants.SYSTEMD_DIR, log=None):
|
|||
'wants': wants,
|
||||
'restart': restart,
|
||||
'stop_grace_period': stop_grace_period,
|
||||
'kill_cgroup_period': 2 * stop_grace_period,
|
||||
'kill_cgroup_period': 2 * int(stop_grace_period),
|
||||
'kill_mode': kill_mode,
|
||||
'sys_exec': '\n'.join(['%s=%s' % (x, y) for x, y in sys_exec.items()]),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue