blob: ab26429bbe81ad668ebf33d56aeb1d12e31eba6b (
plain) (
blame)
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
|
[Unit]
Description = Simple service to start mqtt-listener
StartLimitIntervalSec = 100
StartLimitBurst = 5
[Service]
User = energy
Group = energy
Type = simple
EnvironmentFile = /opt/energyscripts/.env
WorkingDirectory = /opt/energyscripts
ExecStart = /opt/energyscripts/venv/bin/python3 -u scripts/%j.py -a %i
Restart = on-failure
TimeoutStopSec = 70
RestartSec = 30
SyslogIdentifier = %N
NoNewPrivileges = true
ProtectHome = tmpfs
ProtectSystem = full
PrivateDevices = true
ReadWritePaths = /opt/energyscripts/queue
[Install]
WantedBy = default.target
|