aboutsummaryrefslogtreecommitdiffstats
path: root/roles/radicale
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-04-10 23:20:37 +0800
committerAaron LI <aly@aaronly.me>2018-04-10 23:20:37 +0800
commita032ba29a47ce951a92da16188101431dc390c3f (patch)
tree5a863ccef8020472898c03b0859c94efc82b0393 /roles/radicale
parentd42ad1300b589b8e49093a024ebf24c111c33fbf (diff)
downloadansible-dfly-vps-a032ba29a47ce951a92da16188101431dc390c3f.tar.bz2
radicale: Fix log rotation
Diffstat (limited to 'roles/radicale')
-rw-r--r--roles/radicale/tasks/main.yml4
1 files 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"