diff --git a/ceph/ceph/files/mgr-restful-plugin.py b/ceph/ceph/files/mgr-restful-plugin.py index c1cae6067..7d406037c 100644 --- a/ceph/ceph/files/mgr-restful-plugin.py +++ b/ceph/ceph/files/mgr-restful-plugin.py @@ -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))