Package: logrotate Version: 3.11.0-0.1 Dear Maintainer, can you please add a systemd timer for the daily log rotation.
--- /dev/null 2017-03-14 22:28:11.909999999 +0100 +++ logrotate.timer 2017-03-15 20:30:26.475786062 +0100 @@ -0,0 +1,11 @@ +[Unit] +Description=Daily rotation of log files +Documentation=man:logrotate(8) man:logrotate.conf(5) + +[Timer] +OnCalendar=daily +AccuracySec=12h +Persistent=true + +[Install] +WantedBy=timers.target --- /dev/null 2017-03-14 22:28:11.909999999 +0100 +++ logrotate.service 2017-03-15 20:31:00.545579761 +0100 @@ -0,0 +1,11 @@ +[Unit] +Description=Rotate log files +Documentation=man:logrotate(8) man:logrotate.conf(5) +ConditionACPower=true + +[Service] +Type=oneshot +ExecStart=/usr/sbin/logrotate /etc/logrotate.conf +Nice=19 +IOSchedulingClass=best-effort +IOSchedulingPriority=7 --- /etc/cron.daily/logrotate.old 2017-03-17 12:42:33.616945975 +0100 +++ /etc/cron.daily/logrotate 2017-03-15 20:23:22.108327255 +0100 @@ -1,4 +1,8 @@ #!/bin/sh +# skip in favour of systemd timer +if [ -d /run/systemd/system ]; then + exit 0 +fi + test -x /usr/sbin/logrotate || exit 0 /usr/sbin/logrotate /etc/logrotate.conf And change the control's Depends section to ..., cron | anacron | cron-daemon | systemd, ... Best regards, Christian Göttsche