From 454d6002cc99515e873f3f24ad70f577685eb587 Mon Sep 17 00:00:00 2001 From: Marton Kiss Date: Thu, 17 Apr 2014 16:35:11 +0200 Subject: [PATCH] Fix redis.conf pid and data dir settings Override template to make it ubuntu compliant, so pid_file match the init script settings and data dir is ubuntu standard now. Change-Id: Ic1a24514ae85cd3bc5c86a1574af88aec188ebdc Closes-Bug: #1309019 --- modules/redis/templates/redis.2.2.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/redis/templates/redis.2.2.conf.erb b/modules/redis/templates/redis.2.2.conf.erb index bbde00aba0..9a668dfd2a 100644 --- a/modules/redis/templates/redis.2.2.conf.erb +++ b/modules/redis/templates/redis.2.2.conf.erb @@ -18,7 +18,7 @@ daemonize yes # When running daemonized, Redis writes a pid file in /var/run/redis.pid by # default. You can specify a custom pid file location here. -pidfile /var/run/redis_<%= redis_port %>.pid +pidfile /var/run/redis/redis-server.pid # Accept connections on the specified port, default is 6379. # If port 0 is specified Redis will not listen on a TCP socket. @@ -103,7 +103,7 @@ dbfilename dump.rdb # Also the Append Only File will be created inside this directory. # # Note that you must specify a directory here, not a file name. -dir ./ +dir /var/lib/redis ################################# REPLICATION #################################