cgrulesengd -n (nodaemon mode) runs indefinitely until it is terminated
with SIGKILL. To handle this, introduce a 20-second timeout that is
passed to __run(), which in turn calls subproc.kill() to terminate
cgrulesengd once the timer expires.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
'supported'
)
else:
- Run.run(cmd, shell_bool=True)
+ Run.run(cmd, shell_bool=True, timeout=20)
def start_cgrules(self, config):
Cgroup.init_cgrules(config)