Commit dd2b3589 by Heechul Kim

Add pid file of fai-monitor

parent b3b56a07
Showing with 2 additions and 1 deletions
...@@ -448,7 +448,8 @@ def install_machine(data): ...@@ -448,7 +448,8 @@ def install_machine(data):
return (True, s_date) return (True, s_date)
def _bgmonitorprocess(i_port, s_logfile): def _bgmonitorprocess(i_port, s_logfile):
s_cmd = "sudo {} -d -p {} -l {} -T".format(FAI_MONITOR, i_port, s_logfile) s_cmd = "sudo {} -d -p {} -l {} -T -P /tmp/{}.pid"\
.format(FAI_MONITOR, i_port, s_logfile, i_port)
log.debug(s_cmd) log.debug(s_cmd)
with open(s_logfile, 'w+') as f: with open(s_logfile, 'w+') as f:
proc = Popen(s_cmd, shell=True, stdout=f, stderr=f) proc = Popen(s_cmd, shell=True, stdout=f, stderr=f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment