32 lines
698 B
Desktop File
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
|