Revision 99e88451 daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
615 | 615 |
if options.fork: |
616 | 616 |
utils.Daemonize(logfile=constants.LOG_NODESERVER) |
617 | 617 |
|
618 |
utils.WritePidFile('ganeti-noded')
|
|
618 |
utils.WritePidFile(constants.NODED_PID)
|
|
619 | 619 |
|
620 | 620 |
logger.SetupDaemon(logfile=constants.LOG_NODESERVER, debug=options.debug, |
621 | 621 |
stderr_logging=not options.fork) |
... | ... | |
629 | 629 |
try: |
630 | 630 |
server.serve_forever() |
631 | 631 |
finally: |
632 |
utils.RemovePidFile('ganeti-noded')
|
|
632 |
utils.RemovePidFile(constants.NODED_PID)
|
|
633 | 633 |
|
634 | 634 |
|
635 | 635 |
if __name__ == '__main__': |
Also available in: Unified diff