Add sample systemd service

This commit is contained in:
zewelor
2017-11-29 09:13:23 +01:00
parent 550765d096
commit a1676b3e10
+12
View File
@@ -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