69 lines
2.4 KiB
Diff
69 lines
2.4 KiB
Diff
Index: b/sentinel.conf
|
|
===================================================================
|
|
--- a/sentinel.conf
|
|
+++ b/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: b/valkey.conf
|
|
===================================================================
|
|
--- a/valkey.conf
|
|
+++ b/valkey.conf
|
|
@@ -323,7 +323,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.
|
|
@@ -337,7 +337,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:
|
|
@@ -351,7 +351,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.
|
|
@@ -526,7 +527,7 @@ rdb-del-sync-files no
|
|
# 'cluster-config-file' configuration directive is a relative path.
|
|
#
|
|
# Note that you must specify a directory here, not a file name.
|
|
-dir ./
|
|
+dir /var/lib/valkey/default/
|
|
|
|
################################# REPLICATION #################################
|
|
|