From 8cca9b82773e2ca3d13bc1bb009d4e4d98141021 Mon Sep 17 00:00:00 2001 From: antirez Date: Sun, 24 May 2009 09:21:35 +0200 Subject: [PATCH] Warns if using the default config --- TODO | 2 -- redis.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 483d6fcb..d762277d 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,6 @@ BEFORE REDIS 1.0.0-rc1 - * redis-cli should work on scripts too * Replication status in INFO command. role: (master|slave) slaveof: , slavestatus: (disconnected|ok) - * Warning if using default config, with hint about 'redis-server redis.conf' * Add number of keys for every DB in INFO * maxmemory support * maxclients support diff --git a/redis.c b/redis.c index a7c3f211..2fdafc65 100644 --- a/redis.c +++ b/redis.c @@ -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();