File redis-conf.patch of Package redis
Index: redis-7.4.2/redis.conf
===================================================================
--- redis-7.4.2.orig/redis.conf
+++ redis-7.4.2/redis.conf
@@ -136,7 +136,7 @@ protected-mode yes
# Accept connections on the specified port, default is 6379 (IANA #815344).
# If port 0 is specified Redis will not listen on a TCP socket.
-port 6379
+# port 6379
# TCP listen() backlog.
#
@@ -307,7 +307,7 @@ tcp-keepalive 300
# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
# When Redis is supervised by upstart or systemd, this parameter has no impact.
-daemonize no
+daemonize yes
# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
@@ -325,7 +325,7 @@ daemonize no
# The default is "no". To run under upstart/systemd, you can simply uncomment
# the line below:
#
-# supervised auto
+supervised systemd
# If a pid file is specified, Redis writes it where specified at startup
# and removes it at exit.
@@ -339,7 +339,7 @@ daemonize no
#
# Note that on modern Linux systems "/run/redis.pid" is more conforming
# and should be used instead.
-pidfile /var/run/redis_6379.pid
+# pidfile /run/redis/default.pid
# Specify the server verbosity level.
# This can be one of:
@@ -353,7 +353,8 @@ loglevel notice
# Specify the log file name. Also the empty string can be used to force
# Redis to log on the standard output. Note that if you use standard
# output for logging but daemonize, logs will be sent to /dev/null
-logfile ""
+# logfile ""
+# logfile /var/log/redis/default.log
# To enable logging to the system logger, just set 'syslog-enabled' to yes,
# and optionally update the other syslog parameters to suit your needs.
@@ -513,7 +514,7 @@ rdb-del-sync-files no
# The Append Only File will also be created inside this directory.
#
# Note that you must specify a directory here, not a file name.
-dir ./
+# dir /var/lib/redis/default/
################################# REPLICATION #################################
Index: redis-7.4.2/sentinel.conf
===================================================================
--- redis-7.4.2.orig/sentinel.conf
+++ redis-7.4.2/sentinel.conf
@@ -7,17 +7,18 @@ protected-mode no
# port <sentinel-port>
# The port that this sentinel instance will run on
-port 26379
+# port 26379
# By default Redis Sentinel does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis-sentinel.pid when
# daemonized.
daemonize no
+supervised systemd
# When running daemonized, Redis Sentinel writes a pid file in
# /var/run/redis-sentinel.pid by default. You can specify a custom pid file
# location here.
-pidfile /var/run/redis-sentinel.pid
+# pidfile /run/redis/sentinel-default.pid
# Specify the server verbosity level.
# This can be one of:
@@ -31,7 +32,7 @@ loglevel notice
# Specify the log file name. Also the empty string can be used to force
# Sentinel to log on the standard output. Note that if you use standard
# output for logging but daemonize, logs will be sent to /dev/null
-logfile ""
+# logfile /var/log/redis/sentinel-default.log
# To enable logging to the system logger, just set 'syslog-enabled' to yes,
# and optionally update the other syslog parameters to suit your needs.
Index: redis-7.4.2/redis.default.conf
===================================================================
--- /dev/null
+++ redis-7.4.2/redis.default.conf
@@ -0,0 +1,7 @@
+include /etc/redis/includes/redis.defaults.conf
+
+port 6379
+dir /var/lib/redis/default/
+pidfile /run/redis/default.pid
+logfile /var/log/redis/default.log
+
Index: redis-7.4.2/sentinel.default.conf
===================================================================
--- /dev/null
+++ redis-7.4.2/sentinel.default.conf
@@ -0,0 +1,6 @@
+include /etc/redis/includes/sentinel.defaults.conf
+
+port 26379
+pidfile /run/redis/sentinel-default.pid
+logfile /var/log/redis/sentinel-default.log
+