Warns if using the default config

This commit is contained in:
antirez
2009-05-24 09:21:35 +02:00
parent 2073a849df
commit 8cca9b8277
2 changed files with 2 additions and 2 deletions

View File

@ -4002,6 +4002,8 @@ int main(int argc, char **argv) {
} else if (argc > 2) {
fprintf(stderr,"Usage: ./redis-server [/path/to/redis.conf]\n");
exit(1);
} else {
redisLog(REDIS_WARNING,"Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'");
}
initServer();
if (server.daemonize) daemonize();