diff --git a/src/collectd.c b/src/collectd.c
index 190e043a52649a2ae0105e899ad34b2996cf956c..aacc96e3d1de6c1f9b254454c90d9de7043e516f 100644 (file)
--- a/src/collectd.c
+++ b/src/collectd.c
} /* while (1) */
#if COLLECT_DEBUG
- if ((logfile = cf_get_mode_option ("LogFile")) != NULL)
+ if ((logfile = cf_get_option ("LogFile", LOGFILE)) != NULL)
DBG_STARTFILE (logfile, "Debug file opened.");
#endif
* Change directory. We do this _after_ reading the config and loading
* modules to relative paths work as expected.
*/
- if ((datadir = cf_get_mode_option ("DataDir")) == NULL)
+ if ((datadir = cf_get_option ("DataDir", PKGLOCALSTATEDIR)) == NULL)
{
fprintf (stderr, "Don't have a datadir to use. This should not happen. Ever.");
return (1);
sigChldAction.sa_handler = SIG_IGN;
sigaction (SIGCHLD, &sigChldAction, NULL);
- if ((pidfile = cf_get_mode_option ("PIDFile")) == NULL)
+ if ((pidfile = cf_get_option ("PIDFile", PIDFILE)) == NULL)
{
fprintf (stderr, "Cannot obtain pidfile. This shoud not happen. Ever.");
return (1);