aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-20 14:06:31 +0800
committerAaron LI <aly@aaronly.me>2018-12-20 14:06:31 +0800
commit4be8b0ad59f1575a1cc4e794f91bc2b9a3eff09b (patch)
tree6b2e0e4d0d99c93a51d9f5b5e0322e15cffc63cd
parent67256748a799f15a1eed6073deb07733121885af (diff)
downloadansible-dfly-vps-4be8b0ad59f1575a1cc4e794f91bc2b9a3eff09b.tar.bz2
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.
-rw-r--r--roles/radicale/tasks/main.yml6
1 files changed, 0 insertions, 6 deletions
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"