Does anyone know how to pass the auth to redis "when it is started in systemd." You have to use a custom init script here. Mine is the following:
[Unit] Description = Redis In-Memory Store After = network.target [Service] User = redis ExecStart = /www/redis/redis-4.0.11/src/redis-server /www/redis/tests/redis.conf ExecStop = /www/redis/redis-4.0.11/src/redis-cli shutdown RestartSec = 3s Restart = on-success [Install] WantedBy = multi-user.target
I know how to do it if I use the redis_init_script found in redis/utils, but it has to be placed in the /etc/init.d. It does not work when placed in the lib/systemd/system.