mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-07 21:18:08 +02:00
Let systemd create /var/lib/upower
This directory may not exist when cleaning out /var (e. g. on stateless systems). As upowerd cannot mkdir it by itself due to `ProtectSystem`, let systemd create it via `StateDirectory`. Keep `ReadWritePaths` and the `mkdir` in the Makefile to continue to support a non-default `--historydir`.
This commit is contained in:
parent
18457c99b6
commit
e06bfc6a12
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ ProtectSystem=strict
|
|||
ProtectKernelTunables=false
|
||||
ProtectControlGroups=true
|
||||
ReadWritePaths=@historydir@
|
||||
StateDirectory=upower
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue