Added system service
This commit is contained in:
14
dsmr2mqtt.service
Normal file
14
dsmr2mqtt.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=DSMR 2 MQTT Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 -u app.py
|
||||
WorkingDirectory=/home/pi/dsmr2mqtt
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
Restart=always
|
||||
User=pi
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user