summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-12-24 19:14:20 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-12-24 19:14:20 +0300
commit57909a9269f44c0b7bd6691d12fa64db36033c27 (patch)
treee870bcb3134ad796c00d2335af81bb87d68e7430
parent14f885f1a7f0697f3b9311c36e2ad805cf3e3f5c (diff)
systemd: add unit files for pump_mqtt_bot and relay_mqtt_bot
-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