Fix config file path
authorTim Pepper <timothy.c.pepper@linux.intel.com>
Mon, 27 Aug 2012 19:57:14 +0000 (12:57 -0700)
committerTim Pepper <timothy.c.pepper@linux.intel.com>
Mon, 27 Aug 2012 19:57:14 +0000 (12:57 -0700)
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 <timothy.c.pepper@linux.intel.com>
src/corewatcher-config.c
src/corewatcher.c

index 51de997..adefce5 100644 (file)
@@ -1,7 +1,7 @@
 #include <stdio.h>
 #include <glib.h>
 
-#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)
index dfe8cd1..536b098 100644 (file)
@@ -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;