diff --git a/bt-mqtt-gateway.service b/bt-mqtt-gateway.service new file mode 100644 index 0000000..b7c464f --- /dev/null +++ b/bt-mqtt-gateway.service @@ -0,0 +1,12 @@ +[Unit] +Description=Bluetooth MQTT gateway +After=network.target + +[Service] +Type=simple +WorkingDirectory=/home/user/bt-mqtt-gateway +ExecStart=/home/user/bt-mqtt-gateway/gateway.py +Restart=always + +[Install] +WantedBy=multi-user.target \ No newline at end of file