Files
x1208-exporter/systemd/x1208-exporter.service
T

16 lines
339 B
Desktop File

[Unit]
Description=Geekworm X1208 UPS metrics exporter (one-shot)
After=local-fs.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/x1208-exporter
Nice=10
ProtectSystem=strict
ReadWritePaths=/var/lib/node-exporter/textfiles
ProtectHome=true
PrivateTmp=true
NoNewPrivileges=true
DeviceAllow=/dev/i2c-1 rw
DeviceAllow=/dev/gpiochip0 rw