diff --git a/adns_server.py b/adns_server.py index dc17632..ad90481 100755 --- a/adns_server.py +++ b/adns_server.py @@ -125,6 +125,7 @@ def usage(msg=None): -f: Remain attached to foreground (default don't) -e N: Max EDNS bufsize in octets for responses we send out. (-e 0 will disable EDNS support) + -x file: Name of file to write the PID Note: a configuration file that minimally specifies the zones to load must be present. @@ -213,7 +214,7 @@ def process_args(prefs, zonedict, arguments): """Process all command line arguments""" try: - (options, args) = getopt.getopt(arguments, 'hc:dp:s:z:u:g:46fe:') + (options, args) = getopt.getopt(arguments, 'hc:dp:s:z:u:g:46fe:x:') except getopt.GetoptError as error_info: usage(str(error_info)) @@ -250,6 +251,8 @@ def process_args(prefs, zonedict, arguments): prefs.daemon = False elif opt == "-e": prefs.edns_udp_max = int(optval) + elif opt == "-x": + prefs.pidfile = optval def log_message(msg):