aboutsummaryrefslogblamecommitdiffstats
path: root/mqtt_listener.service
blob: 1ae79cafe4f501d281d1f151430401f51b64fcd9 (plain) (tree)
1
2
3
4
5
6
7
8
9
      
                                                 






                                     
                                                                       


                  
                   


                       
[Unit]
Description=Simple service to start mqtt-listener
StartLimitIntervalSec=100
StartLimitBurst=5

[Service]
Type=simple
EnvironmentFile=%h/energyscripts/.env
WorkingDirectory=%h/energyscripts
ExecStart=%h/energyscripts/venv/bin/python3 -u scripts/mqtt_listener.py
Restart=on-failure
TimeoutStopSec=70
RestartSec=30
SyslogIdentifier=%N

[Install]
WantedBy=default.target