Compare commits
2 Commits
master
...
enhanceLog
| Author | SHA1 | Date | |
|---|---|---|---|
| 4cce5f1af7 | |||
| 26eec53f99 |
@@ -100,4 +100,4 @@
|
|||||||
- name: configure logrotate
|
- name: configure logrotate
|
||||||
template:
|
template:
|
||||||
src: logrotate.conf.jj
|
src: logrotate.conf.jj
|
||||||
dest: "/etc/logrotate.d/php-fpm_{{ php_pool_name }}_{{ php_fpm_pool_user }}.conf"
|
dest: "/etc/logrotate.d/php-fpm-{{php_version }}.conf"
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
#{{ ansible_managed }}
|
#{{ ansible_managed }}
|
||||||
{{ php_fpm_log_dir }}/php_fpm_{{ php_pool_name }}*.log {
|
{{ php_fpm_log_dir }}/php_fpm*{{ php_version_nodot }}*.log {
|
||||||
daily
|
daily
|
||||||
rotate 15
|
rotate 15
|
||||||
missingok
|
missingok
|
||||||
notifempty
|
notifempty
|
||||||
sharedscripts
|
sharedscripts
|
||||||
postrotate
|
postrotate
|
||||||
/bin/systemctl reload php{{ php_version }}-fpm
|
if [ -x /usr/lib/php/php{{ php_version }}-fpm-reopenlogs ]; then
|
||||||
endscript
|
/usr/lib/php/php{{ php_version }}-fpm-reopenlogs;
|
||||||
|
else
|
||||||
|
/bin/systemctl reload {{ php_service_name }}
|
||||||
|
fi
|
||||||
|
endscript
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user