diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-12-24 19:14:20 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-12-24 19:14:20 +0300 |
commit | 57909a9269f44c0b7bd6691d12fa64db36033c27 (patch) | |
tree | e870bcb3134ad796c00d2335af81bb87d68e7430 | |
parent | 14f885f1a7f0697f3b9311c36e2ad805cf3e3f5c (diff) |
systemd: add unit files for pump_mqtt_bot and relay_mqtt_bot
-rw-r--r-- | systemd/pump_mqtt_bot.service | 12 | ||||
-rw-r--r-- | systemd/relay_mqtt_bot.service | 12 |
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 |