Revision 7d88772a daemons/ganeti-masterd
b/daemons/ganeti-masterd | ||
---|---|---|
429 | 429 |
utils.debug = options.debug |
430 | 430 |
utils.no_fork = True |
431 | 431 |
|
432 |
if options.fork: |
|
433 |
utils.CloseFDs() |
|
434 |
|
|
432 | 435 |
rpc.Init() |
433 | 436 |
try: |
434 | 437 |
ssconf.CheckMaster(options.debug) |
... | ... | |
460 | 463 |
|
461 | 464 |
# become a daemon |
462 | 465 |
if options.fork: |
463 |
utils.Daemonize(logfile=constants.LOG_MASTERDAEMON, |
|
464 |
noclose_fds=[master.fileno()]) |
|
466 |
utils.Daemonize(logfile=constants.LOG_MASTERDAEMON) |
|
465 | 467 |
|
466 | 468 |
utils.WritePidFile(constants.MASTERD_PID) |
467 | 469 |
try: |
Also available in: Unified diff