diff options
author | Martin Pitt <martin@piware.de> | 2019-02-24 08:56:10 +0100 |
---|---|---|
committer | Martin Pitt <martin@piware.de> | 2019-02-24 08:56:10 +0100 |
commit | e06bfc6a120750ed629291ddcec02f62f178fab4 (patch) | |
tree | 081c8f594ac84f23b5250d200bbc0852ecf67a8f | |
parent | 18457c99b68786cd729b315723d680e6860d9cfa (diff) | |
download | upower-e06bfc6a120750ed629291ddcec02f62f178fab4.tar.gz |
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`.
-rw-r--r-- | src/upower.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/upower.service.in b/src/upower.service.in index 4566ad3..16dcee5 100644 --- a/src/upower.service.in +++ b/src/upower.service.in @@ -14,6 +14,7 @@ ProtectSystem=strict ProtectKernelTunables=false ProtectControlGroups=true ReadWritePaths=@historydir@ +StateDirectory=upower ProtectHome=true PrivateTmp=true |