aboutsummaryrefslogtreecommitdiff
path: root/logrotate/systemd/user/logrotate.service
blob: 45170485c36411d6c7cc55ae960af55dbd0232f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=user log rotation
OnFailure=notify-email@%n

[Service]
Type=oneshot
ConfigurationDirectory=%p %p/config.d
StateDirectory=%p
ExecStartPre=/bin/mkdir -pv -- %h/.local/state/%p
ExecStart=/usr/sbin/logrotate --state=%h/.local/state/%p/status -- %E/%p/config
TimeoutStartSec=20m