From 4be8b0ad59f1575a1cc4e794f91bc2b9a3eff09b Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 20 Dec 2018 14:06:31 +0800 Subject: radicale: Do not bother to rotate the log file Without running radicale in debug mode, the log file is quite small, so do not bother to rotate it. Actually, it's hard to configure uwsgi to properly rotate the log file: when the uwsgi worker accepts the 'HUP' signal and restart, it doesn't have priviledge to create the socket file and thus failed. If, on the other hand, the uwsgi isn't stopped properly, it will leave SysV semaphores in use, and finally exaust all semaphores. --- roles/radicale/tasks/main.yml | 6 ------ 1 file changed, 6 deletions(-) (limited to 'roles') diff --git a/roles/radicale/tasks/main.yml b/roles/radicale/tasks/main.yml index 70b6330..8c796f0 100644 --- a/roles/radicale/tasks/main.yml +++ b/roles/radicale/tasks/main.yml @@ -88,9 +88,3 @@ - name: start radicale command: service uwsgi start radicale - -- name: newsyslog - uwsgi/radicale log rotation - lineinfile: - path: /etc/newsyslog.conf - regexp: '/var/log/uwsgi-radicale.log' - line: "/var/log/uwsgi-radicale.log radicale:radicale 640 7 * @T00 Z /var/run/uwsgi-radicale.pid" -- cgit v1.2.2