From 1c6b836bff089e088af777b2ca181cfbcb383a97 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sat, 30 Dec 2023 14:01:40 +0100 Subject: [PATCH] Example systemd unit --- hyperion-ha-bridge.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hyperion-ha-bridge.service diff --git a/hyperion-ha-bridge.service b/hyperion-ha-bridge.service new file mode 100644 index 0000000..64ec315 --- /dev/null +++ b/hyperion-ha-bridge.service @@ -0,0 +1,18 @@ +[Unit] +Description=Let Hyperion control HomeAssistant lights +Documentation=https://git.kuba-orlik.name/kuba/hyperion-home-assistant-bridge +Requisite=network.target +Wants=network-online.target +After=network-online.target +After=systemd-resolved.service + +[Service] +Environment="HA_TOKEN=thetoken12312312" +ExecStart=node /root/hyperion-ha/index.js +TimeoutStopSec=5 +KillMode=mixed +Restart=on-failure +RestartSec=2 + +[Install] +WantedBy=multi-user.target \ No newline at end of file