mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
77 lines
2.8 KiB
Diff
77 lines
2.8 KiB
Diff
We force "daemonize no" in init script, so daemonize and pidfile does not
|
|
have any effect in redis.conf. It's init/rc system's job to daemonize
|
|
programs and handle pidfiles, if it needs it!
|
|
|
|
Applications often communicate with Redis via unix socket, so it's
|
|
convenient to have it enabled by default.
|
|
|
|
--- a/redis.conf
|
|
+++ b/redis.conf
|
|
@@ -106,8 +106,8 @@
|
|
# incoming connections. There is no default, so Redis will not listen
|
|
# on a unix socket when not specified.
|
|
#
|
|
-# unixsocket /tmp/redis.sock
|
|
-# unixsocketperm 700
|
|
+unixsocket /run/redis/redis.sock
|
|
+unixsocketperm 770
|
|
|
|
# Close the connection after a client is idle for N seconds (0 to disable)
|
|
timeout 0
|
|
@@ -131,10 +131,6 @@
|
|
|
|
################################# GENERAL #####################################
|
|
|
|
-# By default Redis does not run as a daemon. Use 'yes' if you need it.
|
|
-# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
|
|
-daemonize no
|
|
-
|
|
# If you run Redis from upstart or systemd, Redis can interact with your
|
|
# supervision tree. Options:
|
|
# supervised no - no supervision interaction
|
|
@@ -146,17 +142,6 @@
|
|
# They do not enable continuous liveness pings back to your supervisor.
|
|
supervised no
|
|
|
|
-# If a pid file is specified, Redis writes it where specified at startup
|
|
-# and removes it at exit.
|
|
-#
|
|
-# When the server runs non daemonized, no pid file is created if none is
|
|
-# specified in the configuration. When the server is daemonized, the pid file
|
|
-# is used even if not specified, defaulting to "/var/run/redis.pid".
|
|
-#
|
|
-# Creating a pid file is best effort: if Redis is not able to create it
|
|
-# nothing bad happens, the server will start and run normally.
|
|
-pidfile /var/run/redis_6379.pid
|
|
-
|
|
# Specify the server verbosity level.
|
|
# This can be one of:
|
|
# debug (a lot of information, useful for development/testing)
|
|
@@ -168,7 +153,7 @@
|
|
# Specify the log file name. Also the empty string can be used to force
|
|
# Redis 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/redis/redis.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.
|
|
@@ -191,7 +176,7 @@
|
|
#
|
|
# However it is possible to force the pre-4.0 behavior and always show a
|
|
# ASCII art logo in startup logs by setting the following option to yes.
|
|
-always-show-logo yes
|
|
+always-show-logo no
|
|
|
|
################################ SNAPSHOTTING ################################
|
|
#
|
|
@@ -260,7 +245,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 /var/lib/redis
|
|
|
|
################################# REPLICATION #################################
|
|
|