Revision 227647ac daemons/ganeti-masterd

b/daemons/ganeti-masterd
445 445
        raise errors.GenericError("Cannot create socket directory"
446 446
          " '%s': %s" % (constants.SOCKET_DIR, err))
447 447

  
448
    # This is safe to do as the pid file guarantees against
449
    # concurrent execution.
450
    utils.RemoveFile(constants.MASTER_SOCKET)
451

  
448 452
    master = IOServer(constants.MASTER_SOCKET, ClientRqHandler)
449 453
  finally:
450 454
    rpc.Shutdown()
......
477 481
      rpc.Shutdown()
478 482
  finally:
479 483
    utils.RemovePidFile(constants.MASTERD_PID)
484
    utils.RemoveFile(constants.MASTER_SOCKET)
480 485

  
481 486

  
482 487
if __name__ == "__main__":

Also available in: Unified diff