diff --git a/src/ndppd.cc b/src/ndppd.cc index d54718f..e00153e 100644 --- a/src/ndppd.cc +++ b/src/ndppd.cc @@ -351,9 +351,6 @@ int main(int argc, char* argv[], char* env[]) if (cf.is_null()) return -1; - if (!configure(cf)) - return -1; - if (daemon) { logger::syslog(true); @@ -361,6 +358,9 @@ int main(int argc, char* argv[], char* env[]) return 1; } + if (!configure(cf)) + return -1; + if (!pidfile.empty()) { std::ofstream pf; pf.open(pidfile.c_str(), std::ios::out | std::ios::trunc);