Commit 8feda3ad authored by Guido Trotter's avatar Guido Trotter
Browse files

ganeti-masterd: write and remove pidfile

Reviewed-by: iustinp
parent 73d927a2
......@@ -329,6 +329,8 @@ def main():
utils.Daemonize(logfile=constants.LOG_MASTERDAEMON,
noclose_fds=[master.fileno()])
utils.WritePidFile('ganeti-masterd')
logger.SetupDaemon(constants.LOG_MASTERDAEMON, debug=options.debug,
stderr_logging=not options.fork)
......@@ -339,6 +341,7 @@ def main():
master.serve_forever()
finally:
master.server_cleanup()
utils.RemovePidFile('ganeti-masterd')
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment