nginx: Rotate logs daily on OpenBSD
This commit is contained in:
parent
1a71f92138
commit
0e570efebd
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@
|
||||||
path: /etc/newsyslog.conf
|
path: /etc/newsyslog.conf
|
||||||
regexp: "^{{ item }}\\s"
|
regexp: "^{{ item }}\\s"
|
||||||
line: |-
|
line: |-
|
||||||
{{ '{:<40}'.format(item) }}644 7 250 * Z /var/run/nginx.pid
|
{{ '{:<40}'.format(item) }}644 7 * $D0 Z /var/run/nginx.pid
|
||||||
with_items:
|
with_items:
|
||||||
- /var/www/logs/access.log
|
- /var/www/logs/access.log
|
||||||
- /var/www/logs/error.log
|
- /var/www/logs/error.log
|
||||||
|
|
Loading…
Add table
Reference in a new issue