File tree 4 files changed +20
-3
lines changed
4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 49
49
owner : " {{ django_system_user }}"
50
50
group : " {{ django_system_group }}"
51
51
notify :
52
- - restart_service
52
+ - restart_service
53
+
54
+ - name : customize logrotate rules
55
+ template :
56
+ src : etc/logrotate.d/django.j2
57
+ dest : " /etc/logrotate.d/{{ django_service_name }}"
58
+ owner : root
59
+ group : root
60
+ mode : 0644
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ CELERYBEAT_GROUP="{{ django_system_group }}"
18
18
PROJET_ENV="{{ django_env_name }}"
19
19
C_FORCE_ROOT=1
20
20
CELERYBEAT_LOG_LEVEL="{{ django_celerybeat_log_level }}"
21
- CELERYBEAT_LOG_FILE="/var/log/ {{ django_system_user }}/ celerybeat.log"
21
+ CELERYBEAT_LOG_FILE="{{ django_log_path }}celerybeat.log"
22
22
CELERY_CREATE_DIRS=1
23
23
CELERYBEAT_SCHEDULE="/var/run/{{ django_system_user }}/celerybeat-schedule"
24
24
CELERYBEAT_STATE_DIR="/var/run/{{ django_system_user }}/celerybeat"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ CELERY_APP="{{ django_celery_app }}"
21
21
#CELERY_CONFIG_MODULE="celeryconfig"
22
22
23
23
# %n will be replaced with the nodename.
24
- CELERYD_LOG_FILE="/var/log/ {{ django_system_user }}/celery-%n.log"
24
+ CELERYD_LOG_FILE="{{ django_log_path }}/celery-%n.log"
25
25
{% if django_celeryd_pid_file %}
26
26
CELERYD_PID_FILE="{{ django_celeryd_pid_file }}"
27
27
{% else %}
Original file line number Diff line number Diff line change
1
+ "{{ django_log_path }}/*.log" "{{ django_wsgi_logto }}" {
2
+ copytruncate
3
+ daily
4
+ rotate 52
5
+ compress
6
+ delaycompress
7
+ missingok
8
+ notifempty
9
+ }
You can’t perform that action at this time.
0 commit comments