From 7e9f61fd4e944d185acb1577cafe35d79b2bab83 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 27 Dec 2017 09:41:27 +1100 Subject: [PATCH] FIX: stop logging redis logs to docker daemon --- templates/redis.template.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/redis.template.yml b/templates/redis.template.yml index 12b75d0..ab9ceb8 100644 --- a/templates/redis.template.yml +++ b/templates/redis.template.yml @@ -6,7 +6,13 @@ run: #!/bin/sh exec 2>&1 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf - + - file: + path: /etc/service/redis/log/run + chmod: "+x" + contents: | + #!/bin/sh + mkdir -p /var/log/redis + exec svlogd /var/log/redis - file: path: /etc/runit/3.d/10-redis chmod: "+x" -- 2.25.1