92 lines
3.2 KiB
Diff
92 lines
3.2 KiB
Diff
Index: valkey-9.0.0/sentinel.conf
|
|
===================================================================
|
|
--- valkey-9.0.0.orig/sentinel.conf
|
|
+++ valkey-9.0.0/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-9.0.0/valkey.conf
|
|
===================================================================
|
|
--- valkey-9.0.0.orig/valkey.conf
|
|
+++ valkey-9.0.0/valkey.conf
|
|
@@ -395,7 +395,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.
|
|
@@ -409,7 +409,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:
|
|
@@ -440,7 +440,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.
|
|
@@ -631,7 +632,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 #################################
|
|
|
|
Index: valkey-9.0.0/valkey.default.conf
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ valkey-9.0.0/valkey.default.conf
|
|
@@ -0,0 +1,7 @@
|
|
+include /etc/valkey/includes/valkey.defaults.conf
|
|
+
|
|
+port 6379
|
|
+dir /var/lib/valkey/default/
|
|
+pidfile /run/valkey/default.pid
|
|
+logfile /var/log/valkey/default.log
|
|
+
|
|
Index: valkey-9.0.0/sentinel.default.conf
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ valkey-9.0.0/sentinel.default.conf
|
|
@@ -0,0 +1,6 @@
|
|
+include /etc/valkey/includes/sentinel.defaults.conf
|
|
+
|
|
+port 26379
|
|
+pidfile /run/valkey/sentinel-default.pid
|
|
+logfile /var/log/valkey/sentinel-default.log
|
|
+
|