Now daemonizing after the configuration rather than before so that more errors are caught on the command line rather than via an ASYNC process
This commit is contained in:
parent
55ad4b11f0
commit
2f10118a5c
@ -271,6 +271,9 @@ int main(int argc, char* argv[], char* env[])
|
||||
if (cf.is_null())
|
||||
return -1;
|
||||
|
||||
if (!configure(cf))
|
||||
return -1;
|
||||
|
||||
if (daemon) {
|
||||
logger::syslog(true);
|
||||
|
||||
@ -280,9 +283,6 @@ int main(int argc, char* argv[], char* env[])
|
||||
}
|
||||
}
|
||||
|
||||
if (!configure(cf))
|
||||
return -1;
|
||||
|
||||
if (!pidfile.empty()) {
|
||||
std::ofstream pf;
|
||||
pf.open(pidfile.c_str(), std::ios::out | std::ios::trunc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user