maybe chmod 0644 'login.defs'
maybe chmod 0644 'logrotate.conf'
maybe chmod 0755 'logrotate.d'
+maybe chmod 0755 'logrotate.d/.from-pkg'
+maybe chmod 0755 'logrotate.d/.from-pkg/2021-02-03'
maybe chmod 0644 'logrotate.d/alternatives'
maybe chmod 0644 'logrotate.d/apache2'
maybe chmod 0644 'logrotate.d/apt'
maybe chmod 0644 'logrotate.d/btmp'
maybe chmod 0644 'logrotate.d/certbot'
maybe chmod 0644 'logrotate.d/chrony'
-maybe chmod 0644 'logrotate.d/chrony.dpkg-dist'
maybe chmod 0644 'logrotate.d/dpkg'
maybe chmod 0644 'logrotate.d/fail2ban'
maybe chmod 0644 'logrotate.d/icinga2'
create 640 root adm
sharedscripts
postrotate
- if /etc/init.d/apache2 status > /dev/null ; then \
- /etc/init.d/apache2 reload > /dev/null; \
+ if invoke-rc.d apache2 status > /dev/null 2>&1; then \
+ invoke-rc.d apache2 reload > /dev/null 2>&1; \
fi;
endscript
prerotate
+++ /dev/null
-/var/log/chrony/*.log {
- missingok
- nocreate
- sharedscripts
- postrotate
- /usr/bin/chronyc cyclelogs > /dev/null 2>&1 || true
- endscript
-}
olddir /var/log/.old
sharedscripts
postrotate
- invoke-rc.d rsyslog rotate > /dev/null
+ /usr/lib/rsyslog/rsyslog-rotate
endscript
}
olddir /var/log/.old
sharedscripts
postrotate
- invoke-rc.d rsyslog rotate > /dev/null
+ /usr/lib/rsyslog/rsyslog-rotate
endscript
}
olddir /var/log/syslog.d/.old
sharedscripts
postrotate
- invoke-rc.d rsyslog rotate > /dev/null
+ /usr/lib/rsyslog/rsyslog-rotate
endscript
}
# sharedscripts
# create 640 ulog adm
# postrotate
-# invoke-rc.d ulogd2 reload > /dev/null
+# if [ -d /run/systemd/system ] && command systemctl >/dev/null 2>&1 && systemctl is-active --quiet ulogd2.service; then
+# systemctl kill --kill-who main --signal=SIGHUP ulogd2.service
+# else
+# invoke-rc.d ulogd2 reload > /dev/null
+# fi
# endscript
#}
-/var/log/ulog/*.log {
- weekly
+/var/log/ulog/*.log /var/log/ulog/*.pcap {
+ weekly
dateext
- rotate 20
- size 4M
- compress
- delaycompress
- missingok
- notifempty
- create 0640 ulog adm
- sharedscripts
- postrotate
- invoke-rc.d ulogd2 reload > /dev/null
- endscript
+ rotate 20
+ size 4M
+ compress
+ delaycompress
+ missingok
+ notifempty
+ create 0640 ulog adm
+ sharedscripts
+ postrotate
+ if [ -d /run/systemd/system ] && command systemctl >/dev/null 2>&1 && systemctl is-active --quiet ulogd2.service; then
+ systemctl kill --kill-who main --signal=SIGHUP ulogd2.service
+ else
+ invoke-rc.d ulogd2 reload > /dev/null
+ fi
+ endscript
}
# vim: ts=4 filetype=conf