summaryrefslogtreecommitdiff
path: root/systemd/gpiorelayd@.service
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-05-23 21:57:45 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-05-23 21:57:45 +0300
commit5df910239cd960bc6b5946fe087419ac152a8f58 (patch)
treebcfa93091bf87cb43b94ae965f2f1341909189bb /systemd/gpiorelayd@.service
parent9a59215f9e7fca3ef940133824afc4aed04815f9 (diff)
systemd: update gpiorelayd service unit
Diffstat (limited to 'systemd/gpiorelayd@.service')
-rw-r--r--systemd/gpiorelayd@.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd/gpiorelayd@.service b/systemd/gpiorelayd@.service
new file mode 100644
index 0000000..ba2ffaf
--- /dev/null
+++ b/systemd/gpiorelayd@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=GPIO Relay Daemon
+After=network-online.target
+
+[Service]
+User=root
+Group=root
+Restart=on-failure
+ExecStart=/home/user/homekit/src/gpiorelayd.py -с /etc/gpiorelayd.conf.d/%i.toml
+WorkingDirectory=/root
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file