From ae2787b3aeeafdd312c8975cabebfa8e28e575a1 Mon Sep 17 00:00:00 2001 From: evgeny Date: Thu, 5 Oct 2023 04:45:30 +0300 Subject: systemd: add rkmpp hls service unit --- systemd/ipcam_rtsp2hls_rkmpp@.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd/ipcam_rtsp2hls_rkmpp@.service diff --git a/systemd/ipcam_rtsp2hls_rkmpp@.service b/systemd/ipcam_rtsp2hls_rkmpp@.service new file mode 100644 index 0000000..0324a02 --- /dev/null +++ b/systemd/ipcam_rtsp2hls_rkmpp@.service @@ -0,0 +1,14 @@ +[Unit] +Description=convert rtsp to hls for viewing live camera feeds in browser +After=network-online.target + +[Service] +Restart=always +RestartSec=3 +User=root +Group=root +EnvironmentFile=/etc/ipcam_rtsp2hls.conf.d/%i.conf +ExecStart=/home/user/homekit/tools/ipcam_rtsp2hls_h264.sh --name %i --user $USER --password $PASSWORD --ip $IP --port $PORT $ARGS + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3