Revision f93427cd daemons/ganeti-masterd
b/daemons/ganeti-masterd | ||
---|---|---|
538 | 538 |
"""Initial checks whether to run or exit with a failure. |
539 | 539 |
|
540 | 540 |
""" |
541 |
if args: # masterd doesn't take any arguments |
|
542 |
print >> sys.stderr, ("Usage: %s [-f] [-d]" % sys.argv[0]) |
|
543 |
sys.exit(constants.EXIT_FAILURE) |
|
544 |
|
|
541 | 545 |
ssconf.CheckMaster(options.debug) |
542 | 546 |
|
543 | 547 |
# If CheckMaster didn't fail we believe we are the master, but we have to |
Also available in: Unified diff