1
0
Fork 0
This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
miotAirpurifierBridge/systemd/airPurifierBridge.service
2020-04-01 22:13:12 +02:00

25 lines
526 B
Desktop File

[Unit]
Description=Air Purifier Bridge
## If the broker is on the local machine, systemd can take care of starting the
## bridge after the (mosquitto) broker.
#After=mosquitto.service
[Service]
ExecStart=/usr/bin/python3 /opt/miotAirpurifierBridge/miotAirpurifierBridge.py
WorkingDirectory=/opt/miotAirpurifierBridge
## Select the configurationfile
Environment=airpurifierConfigFile=airpurifier.conf
Environment=PYTHONUNBUFFERED=1
Restart=always
RestartSec=30
Type=simple
User=nobody
[Install]
WantedBy=default.target