From
https://github.com/antirez/redis I read:
=====
It is possible to alter the Redis configuration passing parameters
directly
as options using the command line. Examples:
% ./redis-server --port 9999 --slaveof 127.0.0.1 6379
% ./redis-server /etc/redis/6379.conf --loglevel debug
=====
However, I cant seem to get this to work.
I get the following error if I try (Redis server version 2.4.17
(00000000:0))
=====
Usage: ./redis-server [/path/to/redis.conf]
./redis-server - (read config from stdin)
./redis-server --test-memory <megabytes>
=====
I have also read about using "echo XXXXXX | redis-server -" but that
doesnt seem to do what I want either as I am specifying a config file.
Basically, in my config file, I have
"daemonize no"
Which is what I want for most cases except when running on our server.
On our server, I would like to override this as follows:
"./redis-linux-x86_64-2.4.17/redis-server /path/to/conf/redis.conf --
daemonize yes"
I have read around a bit, but I havent been able to figure out how...