summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-06-11 02:35:52 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-06-11 02:35:52 +0300
commitd1331c2904703efc2e10b6942170726930b630c8 (patch)
treec0fcd472d4c3fbc556dc3e5feb8f2d66ae8eddae
parenta3d6fadb2e99a87346d5b4f2c97755cc6f17f3b7 (diff)
gpiorelayd: update systemd service unit file
-rw-r--r--systemd/gpiorelayd@.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/systemd/gpiorelayd@.service b/systemd/gpiorelayd@.service
index a3a8356..e3922dc 100644
--- a/systemd/gpiorelayd@.service
+++ b/systemd/gpiorelayd@.service
@@ -1,12 +1,13 @@
[Unit]
-Description=GPIO Relay Daemon
+Description=Homekit: GPIO Relay Daemon for H3 boards
After=network-online.target
[Service]
User=root
Group=root
Restart=on-failure
-ExecStart=/home/user/homekit/bin/gpiorelayd.py -c /etc/gpiorelayd.conf.d/%i.toml
+EnvironmentFile=/etc/default/homekit_gpiorelayd_%i
+ExecStart=/home/user/homekit/bin/gpiorelayd.py --pin $PIN --listen $LISTEN
WorkingDirectory=/root
[Install]