diff -ur valkey-7.0.0-orig/valkey.conf valkey-7.0.0/valkey.conf
--- valkey.conf	2022-04-27 09:32:17.000000000 -0400
+++ valkey.conf	2022-05-16 14:17:18.104384198 -0400
@@ -338,7 +338,7 @@
 #
 # Note that on modern Linux systems "/run/valkey.pid" is more conforming
 # and should be used instead.
-pidfile /var/run/valkey_6379.pid
+pidfile @PREFIX@/var/run/valkey/valkey_6379.pid
 
 # Specify the server verbosity level.
 # This can be one of:
@@ -351,7 +351,7 @@
 # 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 @PREFIX@/var/log/valkey/valkey.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.
@@ -501,7 +501,7 @@
 # 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 @PREFIX@/var/db/valkey
 
 ################################# REPLICATION #################################