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
1 changed files with 1 additions and 0 deletions

View File

@ -488,6 +488,7 @@ class ServiceMonitor(object):
try:
pid_file = open(CONFIG.service_pid_file, 'w')
pid_file.write(str(os.getpid()))
pid_file.flush()
except OSError as err:
raise ServiceNoPidFile(
path=CONFIG.service_pid_file, reason=str(err))