diff options
author | Frank Meerkoetter <meerkoetter@googlemail.com> | 2016-12-01 19:45:25 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-12-09 12:02:13 +0100 |
commit | 9aace0c5667ab910078cfdd1e388e386f106c074 (patch) | |
tree | 5a0769c587ae3393f8b3d5894fc057dd9c5add76 /meta-oe | |
parent | 3237c650e79c9046d0e1b94568a45d5c6876dbd2 (diff) | |
download | meta-openembedded-9aace0c5667ab910078cfdd1e388e386f106c074.tar.gz |
redis: log to syslog
Creating /var/log/redis.log requires root permissions to
create the file. Use syslog instead so redis does not
require root.
This affects both sysv and systemd based systems.
Signed-off-by: Frank Meerkoetter <frank@meerkoetter.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-extended/redis/redis/redis.conf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-oe/recipes-extended/redis/redis/redis.conf b/meta-oe/recipes-extended/redis/redis/redis.conf index b932089a2..ab024ad85 100644 --- a/meta-oe/recipes-extended/redis/redis/redis.conf +++ b/meta-oe/recipes-extended/redis/redis/redis.conf | |||
@@ -53,14 +53,14 @@ loglevel notice | |||
53 | # Specify the log file name. Also 'stdout' can be used to force | 53 | # Specify the log file name. Also 'stdout' can be used to force |
54 | # Redis to log on the standard output. Note that if you use standard | 54 | # Redis to log on the standard output. Note that if you use standard |
55 | # output for logging but daemonize, logs will be sent to /dev/null | 55 | # output for logging but daemonize, logs will be sent to /dev/null |
56 | logfile /var/log/redis.log | 56 | # logfile /var/log/redis.log |
57 | 57 | ||
58 | # To enable logging to the system logger, just set 'syslog-enabled' to yes, | 58 | # To enable logging to the system logger, just set 'syslog-enabled' to yes, |
59 | # and optionally update the other syslog parameters to suit your needs. | 59 | # and optionally update the other syslog parameters to suit your needs. |
60 | # syslog-enabled no | 60 | syslog-enabled yes |
61 | 61 | ||
62 | # Specify the syslog identity. | 62 | # Specify the syslog identity. |
63 | # syslog-ident redis | 63 | syslog-ident redis |
64 | 64 | ||
65 | # Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7. | 65 | # Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7. |
66 | # syslog-facility local0 | 66 | # syslog-facility local0 |