Debian Codegraph @

debian/lighttpd.lighttpd-maint.service

raw
1 [Unit]
2 Description=lighttpd maintenance tasks
3 RequiresMountsFor=/var/cache
4 ConditionPathExists=/etc/cron.daily/lighttpd
5 Documentation=https://wiki.lighttpd.net
6
7 [Service]
8 User=www-data
9 Type=oneshot
10 ExecStart=/etc/cron.daily/lighttpd
11
12 # reference: logrotate.service
13
14 # performance options
15 Nice=19
16 IOSchedulingClass=best-effort
17 IOSchedulingPriority=7
18
19 # hardening options
20 # details: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
21 # no ProtectHome for userdir logs
22 # no PrivateNetwork for mail delivery
23 # no NoNewPrivileges for third party rotate scripts
24 # no RestrictSUIDSGID for creating setgid directories
25 LockPersonality=true
26 MemoryDenyWriteExecute=true
27 PrivateDevices=true
28 PrivateTmp=true
29 ProtectClock=true
30 ProtectControlGroups=true
31 ProtectHostname=true
32 ProtectKernelLogs=true
33 ProtectKernelModules=true
34 ProtectKernelTunables=true
35 ProtectSystem=full
36 RestrictNamespaces=true
37 RestrictRealtime=true