summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-05-22 23:38:33 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-05-23 00:35:46 +0300
commit225ad92fdac725060d0ecb0c82a046653782d182 (patch)
tree8b7759c514d3774bc6c2dfc85ba9e8ed066651f8 /systemd
parent02f676029a5014e822598947b0ac2f12d183a7f1 (diff)
support street cameras
Diffstat (limited to 'systemd')
-rw-r--r--systemd/ipcam-rtsp2hls@.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd/ipcam-rtsp2hls@.service b/systemd/ipcam-rtsp2hls@.service
new file mode 100644
index 0000000..5ab205b
--- /dev/null
+++ b/systemd/ipcam-rtsp2hls@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=convert rtsp to hls for viewing live camera feeds in browser
+After=network-online.target
+
+[Service]
+Restart=on-failure
+User=user
+Group=user
+EnvironmentFile=/etc/ipcam-rtsp2hls.conf.d/%i.conf
+ExecStart=/home/user/homekit/tools/ipcam-rtsp2hls.sh --name %i --user $USER --password $PASSWORD --ip $IP --port $PORT $ARGS
+
+[Install]
+WantedBy=multi-user.target