Control: tags -1 moreinfo

> the logrotate.service failed when started by the systemd under the following
> conditions:
>  - There is no graphical target but the system runs to multi-user.target,
>  - The system was not started for a few days,
>  - The logrotate service was started at boot time, maybe triggered by the
>     stand still period,
>  - The /var directory is separated to a dedicated md device.
>
> There was no error after manually starting the service at the command line
> when the system was up.
>
> If you don't wish that users will be faced by error messages at boot time it
> would be help to complete the unit description in the file
> /lib/systemd/system/logrotate.service by simply add the following statement
> to the unit section: After=local-fs.target.

By default the logrotate timer depends on sysinit.target[1], which
depends on local-fs.target[2].
Some there is probably something else going on.
Maybe your /var mountpoint is not correctly setup as dependency for
local-fs.target?


[1]: 
https://www.freedesktop.org/software/systemd/man/systemd.timer.html#Default%20Dependencies
[2]: 
https://www.freedesktop.org/software/systemd/man/bootup.html#System%20Manager%20Bootup

Reply via email to