~ubuntu-branches/ubuntu/trusty/keepalived/trusty

« back to all changes in this revision

Viewing changes to lib/parser.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-05-12 20:26:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090512202615-k850bw35qpuvpq4p
Tags: 1.1.17-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/rules: DEB_UPDATE_RCD_PARAMS := expicit init start/stop
    parameters (don't stop at 0 and 6)
  - debian/init.d: init script header adapted to stop rule
  - debian/keepalived.postinst: Remove shutdown and reboot links

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *              data structure representation the conf file representing
8
8
 *              the loadbalanced server pool.
9
9
 *  
10
 
 * Version:     $Id: parser.c,v 1.1.15 2007/09/15 04:07:41 acassen Exp $
 
10
 * Version:     $Id: parser.c,v 1.1.17 2009/03/05 01:31:12 acassen Exp $
11
11
 * 
12
12
 * Author:      Alexandre Cassen, <acassen@linux-vs.org>
13
13
 *              
21
21
 *              as published by the Free Software Foundation; either version
22
22
 *              2 of the License, or (at your option) any later version.
23
23
 *
24
 
 * Copyright (C) 2001-2007 Alexandre Cassen, <acassen@freebox.fr>
 
24
 * Copyright (C) 2001-2009 Alexandre Cassen, <acassen@freebox.fr>
25
25
 */
26
26
 
27
27
#include <glob.h>
30
30
#include <errno.h>
31
31
#include "parser.h"
32
32
#include "memory.h"
 
33
#include "logger.h"
33
34
 
34
35
/* global vars */
35
36
vector keywords;
198
199
 
199
200
        int i;
200
201
        for(i = 0; i < globbuf.gl_pathc; i++){
201
 
                syslog(LOG_INFO, "Opening file '%s'.\n",globbuf.gl_pathv[i]);
 
202
                log_message(LOG_INFO, "Opening file '%s'.\n",globbuf.gl_pathv[i]);
202
203
                stream = fopen(globbuf.gl_pathv[i], "r");
203
204
                if (!stream) {
204
 
                        syslog(LOG_INFO, "Configuration file '%s' open problem (%s)...\n"
 
205
                        log_message(LOG_INFO, "Configuration file '%s' open problem (%s)...\n"
205
206
                                       , globbuf.gl_pathv[i], strerror(errno));
206
207
                        return;
207
208
                }