From 073b8fe6532337eaa942fdf3a38a02cf5204ee56 Mon Sep 17 00:00:00 2001 From: Tim Pepper Date: Mon, 27 Aug 2012 12:57:14 -0700 Subject: [PATCH] Fix config file path For me 'make prefix=/usr libdir=/usr/lib64 sysconfdir=/etc install' put the configuration files in /etc/corewatcher/, but these files weren't looking in that subdirectory. Signed-off-by: Tim Pepper --- src/corewatcher-config.c | 2 +- src/corewatcher.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corewatcher-config.c b/src/corewatcher-config.c index 51de997..adefce5 100644 --- a/src/corewatcher-config.c +++ b/src/corewatcher-config.c @@ -1,7 +1,7 @@ #include #include -#define DEFAULT_FILE "/etc/corewatcher.conf" +#define DEFAULT_FILE "/etc/corewatcher/corewatcher.conf" #define DEFAULT_GROUP "corewatcher" int parse_arg(gchar *arg, gchar **group, gchar **key, gchar **value) diff --git a/src/corewatcher.c b/src/corewatcher.c index dfe8cd1..536b098 100644 --- a/src/corewatcher.c +++ b/src/corewatcher.c @@ -101,7 +101,7 @@ int main(int argc, char**argv) if (nice(15) < 0) perror("Can not set schedule priority"); - read_config_file("/etc/corewatcher.conf"); + read_config_file("/etc/corewatcher/corewatcher.conf"); while (1) { int c; -- 2.7.4