[exim] Re: Bad file descriptor on logs?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Marco Gaiarin
Datum:  
To: Ian Z via Exim-users
CC: exim-users
Betreff: [exim] Re: Bad file descriptor on logs?
Mandi! Ian Z via Exim-users
In chel di` si favelave...

> More information needed:
> - what style of logfile naming is in use (just sequence numbers, or
> dates, or something else?)


?! Sorry but i've not understood the question...


> - please share the logrotate.d entry for exim


Standard debian one:

root@mail:~# cat /etc/logrotate.d/exim4-base 
/var/log/exim4/mainlog /var/log/exim4/rejectlog {
    daily
    missingok
    rotate 10
    compress
    delaycompress
    notifempty
    nocreate
}


> To exclude any systemd issues, you can:


OK, but i've not 'logrotate' issue; logrotate seems to do the correct
things; simply seldom i catch errors as in my original post, and i receive
two report.


Also, Chris Siebenmann wrote me in private:

> The short version is (probably) yes: logrotate was moved from cron.daily
> to being a separate systemd timer unit, 'logrotate.timer' and
> 'logrotate.service', and the timer unit was set to run at midnight. You
> can see this with 'systemctl list-timers'.


root@mail:~# systemctl list-timers
NEXT                         LEFT          LAST                         PASSED       UNIT                         ACTIVATES
Thu 2024-09-26 11:39:00 CEST 4min 48s left Thu 2024-09-26 11:09:08 CEST 25min ago    phpsessionclean.timer        phpsessionclean.service
Thu 2024-09-26 11:40:00 CEST 5min left     Thu 2024-09-26 11:30:08 CEST 4min 3s ago  sysstat-collect.timer        sysstat-collect.service
Thu 2024-09-26 12:58:40 CEST 1h 24min left Thu 2024-09-26 11:13:47 CEST 20min ago    certbot.timer                certbot.service
Thu 2024-09-26 15:40:15 CEST 4h 6min left  Wed 2024-09-25 18:21:07 CEST 17h ago      apt-daily.timer              apt-daily.service
Thu 2024-09-26 15:55:03 CEST 4h 20min left Wed 2024-09-25 15:55:03 CEST 19h ago      systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Fri 2024-09-27 00:00:00 CEST 12h left      Thu 2024-09-26 00:00:08 CEST 11h ago      exim4-base.timer             exim4-base.service
Fri 2024-09-27 00:00:00 CEST 12h left      Thu 2024-09-26 00:00:08 CEST 11h ago      logrotate.timer              logrotate.service
Fri 2024-09-27 00:00:00 CEST 12h left      Thu 2024-09-26 00:00:08 CEST 11h ago      man-db.timer                 man-db.service
Fri 2024-09-27 00:07:00 CEST 12h left      Thu 2024-09-26 00:07:01 CEST 11h ago      sysstat-summary.timer        sysstat-summary.service
Fri 2024-09-27 06:48:43 CEST 19h left      Thu 2024-09-26 06:56:08 CEST 4h 38min ago apt-daily-upgrade.timer      apt-daily-upgrade.service
Sun 2024-09-29 03:10:31 CEST 2 days left   Sun 2024-09-22 03:11:15 CEST 4 days ago   e2scrub_all.timer            e2scrub_all.service

11 timers listed.
Pass --all to see loaded but inactive timers, too.
root@mail:~# systemctl status exim4-base.timer
● exim4-base.timer - Daily exim4-base housekeeping
     Loaded: loaded (/lib/systemd/system/exim4-base.timer; enabled; vendor preset: enabled)
     Active: active (waiting) since Wed 2024-08-21 15:26:20 CEST; 1 months 5 days ago
    Trigger: Fri 2024-09-27 00:00:00 CEST; 12h left
   Triggers: ● exim4-base.service
       Docs: man:exim4(8)

Warning: journal has been rotated since unit was started, output may be incomplete.
root@mail:~# cat /lib/systemd/system/exim4-base.timer
[Unit]
Description=Daily exim4-base housekeeping
Documentation=man:exim4(8)
Before=logrotate.timer

[Timer]
OnCalendar=daily
AccuracySec=12h
Persistent=true

[Install]
WantedBy=timers.target

-- 



--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/