patch rtsp watchdog#338
Conversation
added RTSP Server Watchdog
Added RTSP Server Watchdog
|
Thank you for this. I was having issues where my cameras' RTSP servers would hang and I'd have to always restart the RTSP server manually. Now I can just leave it alone and the stream will still stay up. |
|
Hi, sorry but I'm completely green in linux. Can you explain how to do it step by step? thx |
|
Nice feature, why doesn't this get merged? Is the project abandoned? |
| while : | ||
| do | ||
| sleep 10 | ||
| if pgrep -x "snx_rtsp_server" > /dev/null |
There was a problem hiding this comment.
This will have the 'problem' that it will start the RTSP server even if you manually stopped it.
Sorry for resurfacing this, but I implemented the exact same script before checking the open pull requests, and I had that issue.
Maybe you could check the existence of the /var/run/rtsp-server.pid file and check the enclosed PID?
I can't get this to work, please advise. What am i doing wrong? |
|
Have you tried running both |
Thx for reply!! FTP shows the files are in the right directories. I checked the permissions on both files and they are: I can't figure out what the problem is |
|
Try adding `set -x` as the first command of the
`/media/mmcblk0p2/data/etc/scripts/30-rtsp-watchdog` script, to try and
debug if it is the script that's not found, or if it is something called
inside the script
…On Wed, 2 Oct 2019 at 19:27, mirjef ***@***.***> wrote:
Have you tried running both fang-rtsp-watchdog.sh and 30-rtsp-watchdog
manually, and see if it raises an error?
Thx for reply!!
I just tried this. I get the error:
-sh: /media/mmcblk0p2/data/etc/scripts/30-rtsp-watchdog: not found
same for the .sh file.
FTP shows the files are in the right directories. I checked the
permissions on both files and they are:
-rwxrw-rw-
I can't figure out what the problem is
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#338?email_source=notifications&email_token=AALGAUTNDWVA3EC2ISSTJITQMTRXZA5CNFSM4EZII3A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFXCAI#issuecomment-537620737>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALGAUTRQTZDBKIZ6YH5ILDQMTRXZANCNFSM4EZII3AQ>
.
|
|
tried adding 'set x' as first command. Same result: when I try ls command, the file 30-rtsp-watchdog is listed in this directory |
|
Try `ls -la` on the directory and post the results here. Maybe the
permissions are not as expected?
…On Wed, 2 Oct 2019 at 20:57, mirjef ***@***.***> wrote:
tried adding 'set x' as first command. Same result:
-sh: 30-rtsp-watchdog: not found
when I try ls command, the file 30-rtsp-watchdog is listed in this
directory
Any ideas?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#338?email_source=notifications&email_token=AALGAUXKWNYWORGKCZXL44DQMT4J7A5CNFSM4EZII3A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAF7G7Y#issuecomment-537654143>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALGAUUBCBSKMBKS3TIUDRLQMT4J7ANCNFSM4EZII3AQ>
.
|
|
@gokuu Thanx for your help!! I finally found my (stupid) mistake. I used the wrong text editor which added control characters to line endings, causing the errors. Fixed it and it seems to be working fine now. Thanx again!! |
|
Cool, glad I could help :)
…On Wed, 2 Oct 2019 at 22:12, mirjef ***@***.***> wrote:
@gokuu <https://github.com/gokuu> Thanx for your help!! I finally found
my (stupid) mistake. I used the wrong text editor which added control
characters to line endings, causing the errors. Fixed it and it seems to be
working fine now. Thanx again!!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#338?email_source=notifications&email_token=AALGAURD6FYSE33XAWHIMX3QMUFFRA5CNFSM4EZII3A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAGGLQA#issuecomment-537683392>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALGAUTJDQFRFEY3GUTMXSDQMUFFRANCNFSM4EZII3AQ>
.
|
when RTSP Server "snx_rtsp_server" was hang, watchdog will start rtsp server.