|
kill_string = "kill -9 $(pidof {})".format(self.config.cfs_exe) |
|
status = os.system(kill_string) == 0 |
|
if not status: |
|
log.error("Failed to kill process {}. CFS may have already exited.") |
This only kills the cfs process, need to also kill the xterm. One approach that has worked for us is to use pkill:
pkill -f (process name that is also in xterm title)