summaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon')
-rwxr-xr-xsrc/daemon/CMakeLists.txt4
-rw-r--r--src/daemon/dlt-daemon.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/daemon/CMakeLists.txt b/src/daemon/CMakeLists.txt
index 8ab6711..42d2081 100755
--- a/src/daemon/CMakeLists.txt
+++ b/src/daemon/CMakeLists.txt
@@ -30,4 +30,6 @@ install(TARGETS dlt-daemon
WORLD_EXECUTE WORLD_READ
COMPONENT base)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlt.conf DESTINATION /etc COMPONENT base)
+INSTALL(FILES dlt.conf
+ DESTINATION ${CONFIGURATION_FILES_DIR}
+ COMPONENT base)
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index 6c44da5..b8b8ae9 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -91,7 +91,7 @@ void usage()
printf("Options:\n");
printf(" -d Daemonize\n");
printf(" -h Usage\n");
- printf(" -c filename DLT daemon configuration file (Default: /etc/dlt.conf)\n");
+ printf(" -c filename DLT daemon configuration file (Default: " CONFIGURATION_FILES_DIR "/dlt.conf)\n");
} /* usage() */
/**
@@ -196,7 +196,7 @@ int option_file_parser(DltDaemonLocal *daemon_local)
if(daemon_local->flags.cvalue[0])
filename = daemon_local->flags.cvalue;
else
- filename = "/etc/dlt.conf";
+ filename = CONFIGURATION_FILES_DIR "/dlt.conf";
//printf("Load configuration from file: %s\n",filename);
pFile = fopen (filename,"r");