提交 4600a069 编写于 作者: J jonathan pickett

issue 136: --serviceName argument not recognized in config.c.

上级 b6e7f2d4
......@@ -522,7 +522,8 @@ void loadServerConfigFromString(char *config) {
#ifdef _WIN32
} else if (!strcasecmp(argv[0],"maxheap")) {
// ignore. This is taken care of in the qfork code.
} else if (!strcasecmp(argv[0],"service-name")) {
// ignore. This is taken care of in the win32_service code.
#endif
} else {
err = "Bad directive or wrong number of arguments"; goto loaderr;
......@@ -533,10 +534,17 @@ void loadServerConfigFromString(char *config) {
return;
loaderr:
#ifdef _WIN32
redisLog(REDIS_WARNING, "\n*** FATAL CONFIG FILE ERROR ***\n");
redisLog(REDIS_WARNING, "Reading the configuration file, at line %d\n", linenum);
redisLog(REDIS_WARNING, ">>> '%s'\n", lines[i]);
redisLog(REDIS_WARNING, "%s\n", err);
#else
fprintf(stderr, "\n*** FATAL CONFIG FILE ERROR ***\n");
fprintf(stderr, "Reading the configuration file, at line %d\n", linenum);
fprintf(stderr, ">>> '%s'\n", lines[i]);
fprintf(stderr, "%s\n", err);
#endif
exit(1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册