diff options
author | evgeny <me@ch1p.io> | 2023-10-05 04:45:30 +0300 |
---|---|---|
committer | evgeny <me@ch1p.io> | 2023-10-05 04:45:30 +0300 |
commit | ae2787b3aeeafdd312c8975cabebfa8e28e575a1 (patch) | |
tree | d246becca62da99a17cf916fc4fd93cfe0392035 | |
parent | e26851a6006bbf76461ca49827d1cd34c0715e02 (diff) |
systemd: add rkmpp hls service unit
-rw-r--r-- | systemd/ipcam_rtsp2hls_rkmpp@.service | 14 |
1 files changed, 14 insertions, 0 deletions
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 |