File valkey-conf.patch of Package valkey

Index: valkey-8.1.1/sentinel.conf
===================================================================
--- valkey-8.1.1.orig/sentinel.conf
+++ valkey-8.1.1/sentinel.conf
@@ -13,11 +13,12 @@ port 26379
 # Note that Valkey will write a pid file in /var/run/valkey-sentinel.pid when
 # daemonized.
 daemonize no
+supervised systemd
 
 # When running daemonized, Valkey Sentinel writes a pid file in
 # /var/run/valkey-sentinel.pid by default. You can specify a custom pid file
 # location here.
-pidfile /var/run/valkey-sentinel.pid
+pidfile /run/valkey/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/valkey/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: valkey-8.1.1/valkey.conf
===================================================================
--- valkey-8.1.1.orig/valkey.conf
+++ valkey-8.1.1/valkey.conf
@@ -371,7 +371,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, the server writes it where specified at startup
 # and removes it at exit.
@@ -385,7 +385,7 @@ daemonize no
 #
 # Note that on modern Linux systems "/run/valkey.pid" is more conforming
 # and should be used instead.
-pidfile /var/run/valkey_6379.pid
+pidfile /run/valkey/default.pid
 
 # Specify the server verbosity level.
 # This can be one of:
@@ -416,7 +416,8 @@ loglevel notice
 # Specify the log file name. Also the empty string can be used to force
 # the server 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/valkey/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.
@@ -606,7 +607,7 @@ rdb-del-sync-files no
 # Note that modifying 'dir' during runtime may have unexpected behavior,
 # for example when a child process is running, related file operations may
 # have unexpected effects.
-dir ./
+dir /var/lib/valkey/default/
 
 ################################# REPLICATION #################################
 
openSUSE Build Service is sponsored by