mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 07:36:30 +00:00
first alpha version for syslog support
This commit is contained in:
committed by
Greg Smith
parent
1787cf1c21
commit
2c1eafd7a9
11
config.c
11
config.c
@@ -17,12 +17,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "repmgr.h"
|
||||
|
||||
#define MAXLINELENGTH 4096
|
||||
#include "config.h"
|
||||
|
||||
void
|
||||
parse_config(const char *config_file, repmgr_config *config)
|
||||
parse_config(const char* config_file, configuration_options* options)
|
||||
{
|
||||
char *s, buff[MAXLINELENGTH];
|
||||
char name[MAXLEN];
|
||||
@@ -60,6 +58,11 @@ parse_config(const char *config_file, repmgr_config *config)
|
||||
strncpy (config->conninfo, value, MAXLEN);
|
||||
else if (strcmp(name, "rsync_options") == 0)
|
||||
strncpy (config->rsync_options, value, QUERY_STR_LEN);
|
||||
strncpy (options->cluster_name, value, MAXLEN);
|
||||
else if (strcmp(name, "loglevel") == 0)
|
||||
strncpy (options->loglevel, value, MAXLEN);
|
||||
else if (strcmp(name, "logfacility") == 0)
|
||||
strncpy (options->logfacility, value, MAXLEN);
|
||||
else
|
||||
printf ("WARNING: %s/%s: Unknown name/value pair!\n", name, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user