Files
vw-eu-data-act-prometheus-e…/vw-eu-data-act-exporter.service
2026-08-13 18:44:15 +02:00

32 lines
698 B
Desktop File

[Unit]
Description=VW EU Data Act Prometheus Exporter
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=prometheus
Group=prometheus
WorkingDirectory=/opt/vw-eu-data-act-exporter
ExecStart=/opt/vw-eu-data-act-exporter/venv/bin/python3 /opt/vw-eu-data-act-exporter/vw-eu-data-act-exporter.py
Restart=on-failure
RestartSec=30
# Hardening
NoNewPrivileges=true
#ProtectSystem=strict #Enable this if exporting jsons is not needed
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
# Resource limits
MemoryMax=256M
CPUQuota=10%
[Install]
WantedBy=multi-user.target