summaryrefslogtreecommitdiffstats
path: root/redis-conf.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-10 11:40:32 +0200
committerRemi Collet <remi@php.net>2025-07-10 11:40:32 +0200
commit0c82b2e914f98b4f3fd847009eba07cd1228523d (patch)
tree41f7a7d5d5b883683fb80197fe84dd4dd248a3b7 /redis-conf.patch
parent8350428740d94327df6b1143917e4bb9b91f2299 (diff)
add missing build requirementsHEADmaster
use patch for config instead of sed fix pidfile path in /run/redis set unixsocket
Diffstat (limited to 'redis-conf.patch')
-rw-r--r--redis-conf.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/redis-conf.patch b/redis-conf.patch
new file mode 100644
index 0000000..f4e297f
--- /dev/null
+++ b/redis-conf.patch
@@ -0,0 +1,60 @@
+diff -up ./redis.conf.rpm ./redis.conf
+--- ./redis.conf.rpm 2025-07-10 11:31:26.588797534 +0200
++++ ./redis.conf 2025-07-10 11:31:26.590823030 +0200
+@@ -153,7 +153,7 @@ tcp-backlog 511
+ # incoming connections. There is no default, so Redis will not listen
+ # on a unix socket when not specified.
+ #
+-# unixsocket /run/redis.sock
++unixsocket /run/redis/redis.sock
+ # unixsocketperm 700
+
+ # Close the connection after a client is idle for N seconds (0 to disable)
+@@ -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/redis.pid
+
+ # Specify the server verbosity level.
+ # This can be one of:
+@@ -353,7 +353,7 @@ 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 /var/log/redis/redis.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 +513,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
+
+ ################################# REPLICATION #################################
+
+diff -up ./sentinel.conf.rpm ./sentinel.conf
+--- ./sentinel.conf.rpm 2025-07-10 11:31:26.589683845 +0200
++++ ./sentinel.conf 2025-07-10 11:31:26.592442565 +0200
+@@ -17,7 +17,7 @@ daemonize no
+ # 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.pid
+
+ # Specify the server verbosity level.
+ # This can be one of:
+@@ -31,7 +31,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.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.