service file
This commit is contained in:
parent
1cb2339270
commit
3c985bfc2e
2 changed files with 15 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
cp keymatic-mqtt.service.example /etc/systemd/system/keymatic-mqtt.service
|
||||
config.py
|
13
keymatic-mqtt.service.example
Normal file
13
keymatic-mqtt.service.example
Normal 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
|
||||
|
Loading…
Reference in a new issue