rotate: 4
create: true
dateext: true
- #dateformat: '-%Y-%m-%d'
+ dateformat: '-%Y-%m-%d'
compress: true
delaycompress: true
missingok: true
create_group: 'utmp'
minsize: '1M'
rotate: 1
+ named:
+ path: '/var/log/named/*.log'
+ rotate_every: 'day'
+ missingok: true
+ minsize: '4M'
+ su_owner: 'named'
+ su_group: 'named'
+ create: true
+ create_mode: '0644'
+ create_owner: 'named'
+ create_group: 'named'
+ dateext: true
+ dateformat: '-%Y-%m-%d'
+ compress: true
+ delaycompress: true
+ missingok: true
+ sharedscripts: true
+ postrotate: |
+ /usr/sbin/rndc reload >/dev/null
+ named_run:
+ path: '/var/named/data/named.run'
+ missingok: true
+ su: true
+ su_owner: 'named'
+ su_group: 'named'
+ create: true
+ create_mode: '0644'
+ create_owner: 'named'
+ create_group: 'named'
+ postrotate: |
+ /usr/bin/systemctl reload named.service > /dev/null 2>&1 || true
+ /usr/bin/systemctl reload named-chroot.service > /dev/null 2>&1 || true
+ /usr/bin/systemctl reload named-sdb.service > /dev/null 2>&1 || true
+ /usr/bin/systemctl reload named-sdb-chroot.service > /dev/null 2>&1 || true
+ /usr/bin/systemctl reload named-pkcs11.service > /dev/null 2>&1 || true
+