1
0
Fork 0
mirror of synced 2024-11-04 08:38:57 -05:00
formula-logrotate/pillar.example
2017-02-14 17:13:57 +01:00

47 lines
1,007 B
Text

# vim: sts=2 ts=2 sw=2 et ai
logrotate:
lookup:
pkg: logrotate
service: crond
default_config:
- weekly
- rotate: 52
- create
- compress
- dateext
jobs:
/tmp/var/log/mysql/error:
config:
- weekly
- missingok
- rotate 52
- compress
- delaycompress
- notifempty
- create 640 root adm
- sharedscripts
mysql:
path:
- /tmp/var/log/mysql/*.log
config:
- weekly
- missingok
- rotate 52
- compress
- delaycompress
- notifempty
- create 640 root adm
- sharedscripts
syslog:
path:
- /var/log/cron
- /var/log/maillog
- /var/log/messages
- /var/log/secure
- /var/log/spooler
- /var/log/slapd.log
config:
- sharedscripts
- postrotate
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
- endscript