if not logfiles or daemon: logfiles = [prefs.get('SECURE_LOG')] elif len(logfiles) > 1: ignore_offset = 1 if not prefs.get('ADMIN_EMAIL'): noemail = 1 lock_file = LockFile(prefs.get('LOCK_FILE')) lock_file.create() if upgrade099 and not daemon: if not prefs.get('PURGE_DENY'): lock_file.remove() die("You have supplied the --upgrade099 flag, however you have not set PURGE_DENY in your configuration file") else: u = UpgradeTo099(prefs.get("HOSTS_DENY")) if migrate and not daemon: if not prefs.get('PURGE_DENY'): lock_file.remove() die("You have supplied the --migrate flag however you have not set PURGE_DENY in your configuration file.") else: m = Migrate(prefs.get("HOSTS_DENY")) if purge and not daemon: purge_time = prefs.get('PURGE_DENY') if not purge_time: lock_file.remove() die("You have provided the --purge flag however you have not set PURGE_DENY in your configuration file.")