aboutsummaryrefslogtreecommitdiffstats
path: root/mqtt2pgsql.service
blob: d400b106cfcddbdf2df5225c4687be5294127d01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Simple service to start python-listener
StartLimitIntervalSec=100
StartLimitBurst=5

[Service]
Type=simple
EnvironmentFile=%h/energyscripts/.env
WorkingDirectory=%h/energyscripts
ExecStart=%h/energyscripts/venv/bin/python3 -u mqtt2pgsql.py
Restart=on-failure
TimeoutStopSec=70
RestartSec=30
SyslogIdentifier=mqtt2pgsql
#StandardOutput=journal
#StandardError=journal

[Install]
WantedBy=default.target