0fa22a87a3
- Also, avoid logrotate unit activation when the system is on battery power. OBS-URL: https://build.opensuse.org/request/show/228918 OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=37
12 lines
246 B
Desktop File
12 lines
246 B
Desktop File
[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
|