diff --git a/src/ebusd/main.cpp b/src/ebusd/main.cpp old mode 100755 new mode 100644 index 52a2ca23..a5f2ae1d --- a/src/ebusd/main.cpp +++ b/src/ebusd/main.cpp @@ -1293,7 +1293,10 @@ int main(int argc, char* argv[]) { } if (!opt.foreground) { - setLogFile(opt.logFile); + if (!setLogFile(opt.logFile)) { + logError(lf_main, "unable to open log file %s", opt.logFile); + return EINVAL; + } daemonize(); // make me daemon }