From 0bcf0d9ac3054387add43d5f152156ab82265f7f Mon Sep 17 00:00:00 2001 From: Jeremy Barlow Date: Tue, 3 Apr 2018 15:05:33 -0700 Subject: [PATCH] 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. --- container/supervisord.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/supervisord.conf b/container/supervisord.conf index 4d37383..f1bf506 100644 --- a/container/supervisord.conf +++ b/container/supervisord.conf @@ -20,7 +20,7 @@ command=/usr/bin/mysqld_safe [program:redis-server] process_name = redis-server directory = /etc/redis -command=/usr/bin/redis-server +command=/usr/bin/redis-server /etc/redis/redis.conf user=redis [program:apache2]