summaryrefslogtreecommitdiff
path: root/systemd/pump_mqtt_bot.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/pump_mqtt_bot.service')
-rw-r--r--systemd/pump_mqtt_bot.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/pump_mqtt_bot.service b/systemd/pump_mqtt_bot.service
new file mode 100644
index 0000000..95f9419
--- /dev/null
+++ b/systemd/pump_mqtt_bot.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=homekit pump_mqtt_bot
+After=network-online.target
+
+[Service]
+Restart=on-failure
+User=user
+WorkingDirectory=/home/user
+ExecStart=/home/user/homekit/src/pump_mqtt_bot.py
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file