forked from pool/redis
Accepting request 878769 from home:stroeder:branches:server:database
- replaced /var/run with /run for all PID file paths OBS-URL: https://build.opensuse.org/request/show/878769 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=171
This commit is contained in:
parent
a5451d0ee4
commit
1fff75378e
@ -15,13 +15,13 @@ chmod u=rw,g=r,o= /etc/redis/instancename.conf
|
|||||||
2. change at least pidfile, logfile and dir setting
|
2. change at least pidfile, logfile and dir setting
|
||||||
# the pid file *has* to match your config filename without the ".conf"
|
# the pid file *has* to match your config filename without the ".conf"
|
||||||
|
|
||||||
pidfile /var/run/redis/instancename.pid
|
pidfile /run/redis/instancename.pid
|
||||||
logfile /var/log/redis/instancename.log
|
logfile /var/log/redis/instancename.log
|
||||||
dir /var/lib/redis/instancename/
|
dir /var/lib/redis/instancename/
|
||||||
|
|
||||||
If you want to run more than one instance you also have to change the
|
If you want to run more than one instance you also have to change the
|
||||||
socket path and/or the ip:port combination.
|
socket path and/or the ip:port combination.
|
||||||
e.g. /var/run/redis/instancename.sock
|
e.g. /run/redis/instancename.sock
|
||||||
|
|
||||||
Also make sure if you copy configurations from somewhere, that "daemonize"
|
Also make sure if you copy configurations from somewhere, that "daemonize"
|
||||||
should be set to "no".
|
should be set to "no".
|
||||||
@ -54,12 +54,12 @@ The chmod line differs from the line for the normal redis server.
|
|||||||
2. change at least pidfile, logfile setting
|
2. change at least pidfile, logfile setting
|
||||||
# the pid file *has* to match your config filename without the ".conf"
|
# the pid file *has* to match your config filename without the ".conf"
|
||||||
|
|
||||||
pidfile /var/run/redis/instancename.pid
|
pidfile /run/redis/instancename.pid
|
||||||
logfile /var/log/redis/instancename.log
|
logfile /var/log/redis/instancename.log
|
||||||
|
|
||||||
If you want to run more than one instance you also have to change the
|
If you want to run more than one instance you also have to change the
|
||||||
socket path and/or the ip:port combination.
|
socket path and/or the ip:port combination.
|
||||||
e.g. /var/run/redis/instancename.sock
|
e.g. /run/redis/instancename.sock
|
||||||
|
|
||||||
Also make sure if you copy configurations from somewhere, that "daemonize"
|
Also make sure if you copy configurations from somewhere, that "daemonize"
|
||||||
should be set to "no".
|
should be set to "no".
|
||||||
|
@ -25,7 +25,7 @@ Index: redis.conf
|
|||||||
# Note that on modern Linux systems "/run/redis.pid" is more conforming
|
# Note that on modern Linux systems "/run/redis.pid" is more conforming
|
||||||
# and should be used instead.
|
# and should be used instead.
|
||||||
-pidfile /var/run/redis_6379.pid
|
-pidfile /var/run/redis_6379.pid
|
||||||
+pidfile /var/run/redis/default.pid
|
+pidfile /run/redis/default.pid
|
||||||
|
|
||||||
# Specify the server verbosity level.
|
# Specify the server verbosity level.
|
||||||
# This can be one of:
|
# This can be one of:
|
||||||
@ -62,7 +62,7 @@ Index: sentinel.conf
|
|||||||
# /var/run/redis-sentinel.pid by default. You can specify a custom pid file
|
# /var/run/redis-sentinel.pid by default. You can specify a custom pid file
|
||||||
# location here.
|
# location here.
|
||||||
-pidfile /var/run/redis-sentinel.pid
|
-pidfile /var/run/redis-sentinel.pid
|
||||||
+pidfile /var/run/redis/sentinel-default.pid
|
+pidfile /run/redis/sentinel-default.pid
|
||||||
|
|
||||||
# Specify the log file name. Also the empty string can be used to force
|
# 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
|
# Sentinel to log on the standard output. Note that if you use standard
|
||||||
|
@ -8,7 +8,7 @@ Type=notify
|
|||||||
User=redis
|
User=redis
|
||||||
Group=redis
|
Group=redis
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
PIDFile=/var/run/redis/sentinel-%i.pid
|
PIDFile=/run/redis/sentinel-%i.pid
|
||||||
ExecStart=/usr/sbin/redis-sentinel /etc/redis/sentinel-%i.conf
|
ExecStart=/usr/sbin/redis-sentinel /etc/redis/sentinel-%i.conf
|
||||||
LimitNOFILE=10240
|
LimitNOFILE=10240
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 13 14:28:47 UTC 2021 - Michael Ströder <michael@stroeder.com>
|
||||||
|
|
||||||
|
- replaced /var/run with /run for all PID file paths
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 4 13:21:32 UTC 2021 - Gareth McCarter <garethmccarter@gmail.com>
|
Thu Mar 4 13:21:32 UTC 2021 - Gareth McCarter <garethmccarter@gmail.com>
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ Type=notify
|
|||||||
User=redis
|
User=redis
|
||||||
Group=redis
|
Group=redis
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
PIDFile=/var/run/redis/%i.pid
|
PIDFile=/run/redis/%i.pid
|
||||||
ExecStart=/usr/sbin/redis-server /etc/redis/%i.conf
|
ExecStart=/usr/sbin/redis-server /etc/redis/%i.conf
|
||||||
LimitNOFILE=10240
|
LimitNOFILE=10240
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
Loading…
Reference in New Issue
Block a user