From 57909a9269f44c0b7bd6691d12fa64db36033c27 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 24 Dec 2022 19:14:20 +0300 Subject: systemd: add unit files for pump_mqtt_bot and relay_mqtt_bot --- systemd/pump_mqtt_bot.service | 12 ++++++++++++ systemd/relay_mqtt_bot.service | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 systemd/pump_mqtt_bot.service create mode 100644 systemd/relay_mqtt_bot.service 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 -- cgit v1.2.3