mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Warns if using the default config
This commit is contained in:
parent
2073a849df
commit
8cca9b8277
2
TODO
2
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: <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
|
||||
* maxmemory support
|
||||
* maxclients support
|
||||
|
2
redis.c
2
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();
|
||||
|
Loading…
Reference in New Issue
Block a user