new_contents: from constants import *
  import optparse
  import sys
  import os
  import pritunl_node
  
  def pritunl_daemon():
      parser = optparse.OptionParser()
      parser.add_option('-d', '--daemon', action='store_true',
          help='Daemonize process')
      parser.add_option('-p', '--pidfile', type='string',
          help='Path to create pid file')
      parser.add_option('-c', '--conf', type='string',
          help='Path to configuration file')
      parser.add_option('--version', action='store_true',
          help='Print version')
      (options, args) = parser.parse_args()
  
      if options.version:
          print '%s v%s' % (pritunl_node.__title__, pritunl_node.__version__)
          sys.exit(0)
  
      if options.daemon:
          pid = os.fork()
          if pid > 0:
              if options.pidfile:
                  with open(options.pidfile, 'w') as pid_file:
                      pid_file.write('%s' % pid)
              sys.exit(0)
      else:
          print '##############################################################'
          print '#                                                            #'
          print '#                      /$$   /$$                         /$$ #'
          print '#                     |__/  | $$                        | $$ #'
          print '#   /$$$$$$   /$$$$$$  /$$ /$$$$$$   /$$   /$$ /$$$$$$$ | $$ #'
          print '#  /$$__  $$ /$$__  $$| $$|_  $$_/  | $$  | $$| $$__  $$| $$ #'
          print '# | $$  \ $$| $$  \__/| $$  | $$    | $$  | $$| $$  \ $$| $$ #'
          print '# | $$  | $$| $$      | $$  | $$ /$$| $$  | $$| $$  | $$| $$ #'
          print '# | $$$$$$$/| $$      | $$  |  $$$$/|  $$$$$$/| $$  | $$| $$ #'
          print '# | $$____/ |__/      |__/   \___/   \______/ |__/  |__/|__/ #'
          print '# | $$                                                       #'
          print '# | $$                                          /$$          #'
          print '# |__/                                         | $$          #'
          print '#                       /$$$$$$$  /$$$$$$  /$$$$$$$ /$$$$$$  #'
          print '#                      | $$__  $$/$$__  $$/$$__  $$/$$__  $$ #'
          print '#                      | $$  \ $| $$  \ $| $$  | $| $$$$$$$$ #'
          print '#                      | $$  | $| $$  | $| $$  | $| $$_____/ #'
          print '#                      | $$  | $|  $$$$$$|  $$$$$$|  $$$$$$$ #'
          print '#                      |__/  |__/\______/ \_______/\_______/ #'
          print '#                                                            #'
          print '##############################################################'
  
      if options.conf:
          conf_path = options.conf
      else:
          conf_path = DEFAULT_CONF_PATH
  
      pritunl_node.app_server.conf_path = conf_path
      pritunl_node.app_server.run_server()
  
subject: Add pritunl daemon function