|
7 rokov pred | |
---|---|---|
.. | ||
meta | 9 rokov pred | |
tasks | 7 rokov pred | |
templates | 7 rokov pred | |
tests | 9 rokov pred | |
.travis.yml | 9 rokov pred | |
README.md | 9 rokov pred |
Installs logrotate and provides an easy way to setup additional logrotate scripts by specifying a list of directives.
None
logrotate_scripts: A list of logrotate scripts and the directives to use for the rotation.
logrotate_scripts:
- name: rails
path: "/srv/current/log/*.log"
options:
- weekly
- size 25M
- missingok
- compress
- delaycompress
- copytruncate
None
Setting up logrotate for additional Nginx logs, with postrotate script.
logrotate_scripts:
- name: nginx
path: /var/log/nginx/*.log
options:
- weekly
- size 25M
- rotate 7
- missingok
- compress
- delaycompress
- copytruncate
scripts:
postrotate: "[ -s /run/nginx.pid ] && kill USR1 `cat /run/nginx.pid`"
BSD
Find Nick Hammond on Twitter.