1--- valkey.conf.orig	2025-03-31 19:55:59 UTC
2+++ valkey.conf
3@@ -353,7 +353,7 @@ tcp-keepalive 300
4 # By default the server does not run as a daemon. Use 'yes' if you need it.
5 # Note that the server will write a pid file in /var/run/valkey.pid when daemonized.
6 # When the server is supervised by upstart or systemd, this parameter has no impact.
7-daemonize no
8+daemonize yes
9
10 # If you run the server from upstart or systemd, the server can interact with your
11 # supervision tree. Options:
12@@ -385,7 +385,7 @@ daemonize no
13 #
14 # Note that on modern Linux systems "/run/valkey.pid" is more conforming
15 # and should be used instead.
16-pidfile /var/run/valkey_6379.pid
17+pidfile %%VALKEY_RUNDIR%%/valkey.pid
18
19 # Specify the server verbosity level.
20 # This can be one of:
21@@ -416,7 +416,7 @@ loglevel notice
22 # Specify the log file name. Also the empty string can be used to force
23 # the server to log on the standard output. Note that if you use standard
24 # output for logging but daemonize, logs will be sent to /dev/null
25-logfile ""
26+logfile %%VALKEY_LOGDIR%%/valkey.log
27
28 # To enable logging to the system logger, just set 'syslog-enabled' to yes,
29 # and optionally update the other syslog parameters to suit your needs.
30@@ -606,7 +606,7 @@ rdb-del-sync-files no
31 # Note that modifying 'dir' during runtime may have unexpected behavior,
32 # for example when a child process is running, related file operations may
33 # have unexpected effects.
34-dir ./
35+dir %%VALKEY_DBDIR%%/
36
37 ################################# REPLICATION #################################
38
39