Merge "ceph: mgr-restful-plugin pid file issues"
This commit is contained in:
commit
8d92b9ed74
@ -488,6 +488,7 @@ class ServiceMonitor(object):
|
|||||||
try:
|
try:
|
||||||
pid_file = open(CONFIG.service_pid_file, 'w')
|
pid_file = open(CONFIG.service_pid_file, 'w')
|
||||||
pid_file.write(str(os.getpid()))
|
pid_file.write(str(os.getpid()))
|
||||||
|
pid_file.flush()
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
raise ServiceNoPidFile(
|
raise ServiceNoPidFile(
|
||||||
path=CONFIG.service_pid_file, reason=str(err))
|
path=CONFIG.service_pid_file, reason=str(err))
|
||||||
|
Loading…
Reference in New Issue
Block a user