Commit 8cca9b82 authored by antirez's avatar antirez
Browse files

Warns if using the default config

parent 2073a849
BEFORE REDIS 1.0.0-rc1 BEFORE REDIS 1.0.0-rc1
* redis-cli should work on scripts too
* Replication status in INFO command. role: (master|slave) slaveof: <host:port>, slavestatus: (disconnected|ok) * Replication status in INFO command. role: (master|slave) slaveof: <host:port>, slavestatus: (disconnected|ok)
* Warning if using default config, with hint about 'redis-server redis.conf'
* Add number of keys for every DB in INFO * Add number of keys for every DB in INFO
* maxmemory support * maxmemory support
* maxclients support * maxclients support
......
...@@ -4002,6 +4002,8 @@ int main(int argc, char **argv) { ...@@ -4002,6 +4002,8 @@ int main(int argc, char **argv) {
} else if (argc > 2) { } else if (argc > 2) {
fprintf(stderr,"Usage: ./redis-server [/path/to/redis.conf]\n"); fprintf(stderr,"Usage: ./redis-server [/path/to/redis.conf]\n");
exit(1); 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(); initServer();
if (server.daemonize) daemonize(); if (server.daemonize) daemonize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment