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