summarylogtreecommitdiffstats
path: root/sonnen-exporter.service
blob: 5ad771933d31847faff137c70c8a700827675f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Prometheus exporter for Sonnen battery systems
Documentation=https://github.com/benalexau/sonnen-exporter
After=network.target

[Service]
User=sonnen-exporter
Group=sonnen-exporter
ExecStart=/usr/bin/sonnen-exporter /etc/sonnen-exporter.toml
LimitNOFILE=64
LimitNPROC=64
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
AmbientCapabilities=CAP_NET_BIND_SERVICE

[Install]
WantedBy=multi-user.target