Revision 99e88451 daemons/ganeti-masterd

b/daemons/ganeti-masterd
329 329
    utils.Daemonize(logfile=constants.LOG_MASTERDAEMON,
330 330
                    noclose_fds=[master.fileno()])
331 331

  
332
  utils.WritePidFile('ganeti-masterd')
332
  utils.WritePidFile(constants.MASTERD_PID)
333 333

  
334 334
  logger.SetupDaemon(constants.LOG_MASTERDAEMON, debug=options.debug,
335 335
                     stderr_logging=not options.fork)
......
341 341
    master.serve_forever()
342 342
  finally:
343 343
    master.server_cleanup()
344
    utils.RemovePidFile('ganeti-masterd')
344
    utils.RemovePidFile(constants.MASTERD_PID)
345 345

  
346 346

  
347 347
if __name__ == "__main__":

Also available in: Unified diff