def run(self, check_interval=<NUM_LIT>):
while True:<EOL><INDENT>if args.config:<EOL><INDENT>config = config_file_parser.get_configuration(args.config)<EOL>access_key_id = config['<STR_LIT>']<EOL>secret_access_key = config['<STR_LIT>']<EOL>region = config['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>access_key_id = args.access_key_id<EOL>secret_access_key = args.secret_access_key<EOL>region = args.region<EOL><DEDENT>connection = connection_manager.connect_to_ec2(<EOL>region, access_key_id, secret_access_key)<EOL>snapshot_manager.run(connection)<EOL>logger.info('<STR_LIT>'.format(<EOL>check_interval))<EOL>time.sleep(check_interval)<EOL><DEDENT>
Run the daemon

        :type check_interval: int
        :param check_interval: Delay in seconds between checks