[Unit] Description=TTN VEGAPULS Air Prometheus Exporter Documentation=https://git.mosad.xyz/localhorst/TTN-VEGAPULS-Air-exporter After=network-online.target Wants=network-online.target [Service] Type=simple User=prometheus Group=prometheus # Working directory WorkingDirectory=/opt/ttn-vegapulsair-exporter/ # Execution ExecStart=/usr/bin/python3 /opt/ttn-vegapulsair-exporter/ttn-vegapulsair-exporter.py # Restart configuration Restart=always RestartSec=10 # Logging StandardOutput=journal StandardError=journal SyslogIdentifier=ttn-vegapuls-exporter # Security settings NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/opt/ttn-vegapulsair-exporter/ ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true # Resource limits MemoryMax=256M CPUQuota=5% # Environment Environment="PYTHONUNBUFFERED=1" [Install] WantedBy=multi-user.target