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

26 lines
526 B
SYSTEMD
Raw Permalink Normal View History

2020-04-01 22:13:12 +02:00
[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