summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/camera_node.service13
-rw-r--r--systemd/camera_node@.service13
2 files changed, 26 insertions, 0 deletions
diff --git a/systemd/camera_node.service b/systemd/camera_node.service
new file mode 100644
index 0000000..0de3cc1
--- /dev/null
+++ b/systemd/camera_node.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=HomeKit Camera Node
+After=network-online.target
+
+[Service]
+User=user
+Group=user
+Restart=on-failure
+ExecStart=/home/user/homekit/src/camera_node.py
+WorkingDirectory=/home/user
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file
diff --git a/systemd/camera_node@.service b/systemd/camera_node@.service
new file mode 100644
index 0000000..414881e
--- /dev/null
+++ b/systemd/camera_node@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=HomeKit Camera Node
+After=network-online.target
+
+[Service]
+User=user
+Group=user
+Restart=on-failure
+ExecStart=/home/user/homekit/src/camera_node.py --config /home/user/.config/camera_node.%i.yaml
+WorkingDirectory=/home/user
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file