From a032ba29a47ce951a92da16188101431dc390c3f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 10 Apr 2018 23:20:37 +0800 Subject: radicale: Fix log rotation --- roles/radicale/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/radicale/tasks/main.yml b/roles/radicale/tasks/main.yml index 213b523..c6a88bc 100644 --- a/roles/radicale/tasks/main.yml +++ b/roles/radicale/tasks/main.yml @@ -59,7 +59,7 @@ uwsgi_radicale_socket="/var/run/uwsgi-radicale.sock" uwsgi_radicale_uid="radicale" uwsgi_radicale_gid="radicale" - uwsgi_radicale_flags="-L --env RADICALE_CONFIG={{ radicale.etcdir }}/config --plugin python --wsgi-file {{ radicale.wwwdir }}/radicale.wsgi" + uwsgi_radicale_flags="-L --log-reopen --logfile-chown --wsgi-file {{ radicale.wwwdir }}/radicale.wsgi --env RADICALE_CONFIG={{ radicale.etcdir }}/config" - name: enable and start uwsgi command: rcenable uwsgi @@ -68,4 +68,4 @@ lineinfile: path: /etc/newsyslog.conf regexp: '/var/log/uwsgi-radicale.log' - line: "/var/log/uwsgi-radicale.log 640 7 * @T00 Z /var/run/uwsgi-radicale.pid" + line: "/var/log/uwsgi-radicale.log radicale:radicale 640 7 * @T00 Z /var/run/uwsgi-radicale.pid" -- cgit v1.2.2