mirror of https://github.com/MISP/docker-misp
Pass redis conf file to redis-server program in supervisord.conf
Previously, the redis-server program was started from supervisord.conf without a configuration file specifying the data directory to use. This resulted in redis "not able to persist to disk" errors when the mispzmq script performed some redis commands. The error was due to the default redis data directory, /etc/redis, not being writable by the user that the redis process runs as, redis. This commit passes the /etc/redis/redis.conf configuration file to the redis-server process at startup. The configuration file already sets the data directory to a directory that the redis user has write access to, /var/lib/redis.pull/4/head
parent
91b928e31f
commit
0bcf0d9ac3
|
@ -20,7 +20,7 @@ command=/usr/bin/mysqld_safe
|
||||||
[program:redis-server]
|
[program:redis-server]
|
||||||
process_name = redis-server
|
process_name = redis-server
|
||||||
directory = /etc/redis
|
directory = /etc/redis
|
||||||
command=/usr/bin/redis-server
|
command=/usr/bin/redis-server /etc/redis/redis.conf
|
||||||
user=redis
|
user=redis
|
||||||
|
|
||||||
[program:apache2]
|
[program:apache2]
|
||||||
|
|
Loading…
Reference in New Issue