service file

This commit is contained in:
7marcus9 2022-10-04 20:14:06 +02:00
parent 1cb2339270
commit 3c985bfc2e
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,2 @@
cp keymatic-mqtt.service.example /etc/systemd/system/keymatic-mqtt.service
config.py

View file

@ -0,0 +1,13 @@
[Unit]
Description=Keymatic MQTT Service
Requires=network-online.target
After=network-online.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/python3 /opt/Keymatic-mqtt/mqtt.py
[Install]
WantedBy=multi-user.target