Revision 0679a724 nfdhcpd
b/nfdhcpd | ||
---|---|---|
688 | 688 |
default=DEFAULT_CONFIG) |
689 | 689 |
parser.add_option("-d", "--debug", action="store_true", dest="debug", |
690 | 690 |
help="Turn on debugging messages") |
691 |
parser.add_option("-f", "--foreground", action="store_false", dest="daemonize", |
|
692 |
default=True, help="Do not daemonize, stay in the foreground") |
|
691 |
parser.add_option("-f", "--foreground", action="store_false", |
|
692 |
dest="daemonize", default=True, |
|
693 |
help="Do not daemonize, stay in the foreground") |
|
693 | 694 |
|
694 | 695 |
|
695 | 696 |
opts, args = parser.parse_args() |
... | ... | |
711 | 712 |
logging.fatal("Configuration file validation failed! See errors below:") |
712 | 713 |
for (section_list, key, _) in flatten_errors(config, results): |
713 | 714 |
if key is not None: |
714 |
logging.fatal(" '%s' in section '%s' failed validation" % (key, ", ".join(section_list))) |
|
715 |
logging.fatal(" '%s' in section '%s' failed validation" % |
|
716 |
(key, ", ".join(section_list))) |
|
715 | 717 |
else: |
716 |
logging.fatal(" Section '%s' is missing" % ", ".join(section_list)) |
|
718 |
logging.fatal(" Section '%s' is missing" % |
|
719 |
", ".join(section_list)) |
|
717 | 720 |
sys.exit(1) |
718 | 721 |
|
719 | 722 |
pidfile = open(config["general"]["pidfile"], "w") |
Also available in: Unified diff