fix systemd job

This commit is contained in:
2026-08-13 18:19:32 +02:00
parent addb16b6b0
commit 59d1d29458
3 changed files with 20 additions and 3 deletions
+7 -1
View File
@@ -13,7 +13,13 @@ Restart=on-failure
RestartSec=30
# Hardening
ReadWritePaths=/opt/vw-eu-data-act-exporter/raw_json
# StateDirectory is created automatically (with correct ownership) before
# the service starts and is writable under ProtectSystem=strict without a
# ReadWritePaths= entry - systemd exposes its absolute path via
# $STATE_DIRECTORY, which config.py picks up for persist_raw_json_dir.
# Unlike ReadWritePaths=, this does not require the directory to already
# exist on disk.
StateDirectory=vw-eu-data-act-exporter
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true