summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-01-04 02:34:19 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-01-04 02:34:19 +0300
commitf32fd7b020f386a1c898426cd1b874fe06e78c33 (patch)
treee7c1085d0ccb9e85b492e76912a47175acc0eca0
parentee8381f7c5d9646688c5b9295ac7078b42415ba2 (diff)
relay_mqtt_http_proxy: add systemd unit
-rw-r--r--systemd/relay_mqtt_http_proxy.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/relay_mqtt_http_proxy.service b/systemd/relay_mqtt_http_proxy.service
new file mode 100644
index 0000000..316a920
--- /dev/null
+++ b/systemd/relay_mqtt_http_proxy.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=homekit relay_mqtt_http_proxy
+After=network-online.target
+
+[Service]
+Restart=on-failure
+User=user
+WorkingDirectory=/home/user
+ExecStart=/home/user/homekit/src/relay_mqtt_http_proxy.py
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file