summarylogtreecommitdiffstats
path: root/iot-exporter.service
blob: 9c7098a534f904f5eb8a9456a23d728a801affbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[Unit]
Description=IOT expoter for prometheus
After=network.target

[Service]
ExecStart=/usr/bin/iot-exporter -mqtt.broker $MQTT_BROKER
WorkingDirectory=/var/lib/iot-exporter
EnvironmentFile=/etc/default/iot-exporter
StandardOutput=inherit
StandardError=inherit
Restart=always
User=iot-exporter

CapabilityBoundingSet=
NoNewPrivileges=true
RemoveIPC=true
LockPersonality=true

ProtectControlGroups=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectHostname=true
ProtectProc=noaccess
ProtectClock=yes

RestrictRealtime=true
RestrictSUIDSGID=true
RestrictNamespaces=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6

ProtectSystem=strict
ProtectHome=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target