blob: f5173943265ac1c3b6c83664112788fa876fa79f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
[Unit]
Description=Rotate log files
Documentation=man:logrotate(8) man:logrotate.conf(5)
ConditionACPower=true
[Service]
Type=oneshot
ExecStart=/usr/bin/logrotate %h/.config/logrotate.conf -s %S/logrotate.status -v
Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7
# hardening options
# details: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
# no ProtectHome for userdir logs
# no PrivateNetwork for mail deliviery
# no NoNewPrivileges for third party rotate scripts
# LockPersonality=true
# MemoryDenyWriteExecute=true
# PrivateDevices=true
# PrivateTmp=true
# ProtectControlGroups=true
# ProtectKernelLogs=true
# ProtectKernelModules=true
# ProtectKernelTunables=true
# ProtectSystem=full
# RestrictNamespaces=true
# RestrictRealtime=true
|