Fixed issue 497
This commit is contained in:
parent
24765e6891
commit
a1d8d46f11
|
@ -178,19 +178,6 @@ CApp::parseArgs(int argc, const char* const* argv, int& i)
|
||||||
// parse options
|
// parse options
|
||||||
for (i = 1; i < argc; ++i) {
|
for (i = 1; i < argc; ++i) {
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
|
||||||
// suggest that user installs as a windows service. when launched as
|
|
||||||
// service, process should automatically detect that it should run in
|
|
||||||
// daemon mode.
|
|
||||||
if (argsBase().m_daemon) {
|
|
||||||
LOG((CLOG_ERR
|
|
||||||
"The --daemon argument is not supported on Windows. "
|
|
||||||
"Instead, install %s as a service (--service install).",
|
|
||||||
argsBase().m_pname));
|
|
||||||
m_bye(kExitArgs);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (parseArg(argc, argv, i)) {
|
if (parseArg(argc, argv, i)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -211,6 +198,19 @@ CApp::parseArgs(int argc, const char* const* argv, int& i)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SYSAPI_WIN32
|
||||||
|
// suggest that user installs as a windows service. when launched as
|
||||||
|
// service, process should automatically detect that it should run in
|
||||||
|
// daemon mode.
|
||||||
|
if (argsBase().m_daemon) {
|
||||||
|
LOG((CLOG_ERR
|
||||||
|
"The --daemon argument is not supported on Windows. "
|
||||||
|
"Instead, install %s as a service (--service install).",
|
||||||
|
argsBase().m_pname));
|
||||||
|
m_bye(kExitArgs);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue