ansible-roles/evolinux-base/files
Ludovic Poujol dc1c78e08a
All checks were successful
continuous-integration/drone/push Build is passing
evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10
I've noticed that some log files, especially /var/log/syslog were empty.
After investigating, I've realized that it was happening after a log
rotation by logrotate.

The old mechanism, `invoke-rc.d rsyslog rotate` isn't working anymore on
Debian 10. It will fail with a not so explicit message :

[FAIL] Closing open files: rsyslogd failed!

Long story short, it seems that the pid file (`/run/rsyslogd.pid`) isn't
created any more, so start-stop-daemon as used by /etc/init.d/rsyslog
will fail. Explaining the error message.

Debian 10 rsyslog now brings `/usr/lib/rsyslog/rsyslog-rotate` that is
used by logrotate. It will send the signal HUP the 'right' way, so
rsyslog will be aware of the log rotation.

Sadly, this script isn't present in Debian 9 nor 8, so the logrotate
configuration for rsyslog is now a template, using the right command for
the right version.
2019-11-22 16:48:19 +01:00
..
default_www/img Squash: conventions, evolinux, etc-git… 2016-12-21 16:12:30 +01:00
logs evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10 2019-11-22 16:48:19 +01:00
root Over-simplified /root/.gitconfig 2017-07-18 20:00:20 +02:00
alert5.service A real systemd unit for alert5 2017-10-06 15:27:22 +02:00
deny.sh evolinux-base: install /sbin/deny 2019-10-30 14:32:32 +01:00
hwraid.le-vert.net.gpg.key evolnux-base: cache pgp key locally 2017-11-15 11:40:42 +01:00
log2mail.service evolinux-base: override logmail service 2017-07-19 16:03:36 +02:00