Merge "ceph: mgr-restful-plugin pid file issues"

This commit is contained in:
Zuul 2019-07-17 15:01:40 +00:00 committed by Gerrit Code Review
commit 8d92b9ed74

View File

@ -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))