fang-hacks
fang-hacks copied to clipboard
patch rtsp watchdog
when RTSP Server "snx_rtsp_server" was hang, watchdog will start rtsp server.
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?
when RTSP Server "snx_rtsp_server" was hang, watchdog will start rtsp server.
I can't get this to work, please advise. What I have done: I have uploaded both files (30-rtsp-watchdog and fang-rtsp-watchdog.sh) to the named directories on my hacked Xiaofang S1. I SSH-ed into the cam and gave the .sh file 766 permissions with the chmod command. After reboot an extra line '30-rtsp-watchdog' appears in 'manage scripts'. So far so good. The problem is the button Start does not work and the status remains red[NOK].
What am i doing wrong?
Have you tried running both fang-rtsp-watchdog.sh
and 30-rtsp-watchdog
manually, and see if it raises an error?
Have you tried running both
fang-rtsp-watchdog.sh
and30-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
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 [email protected] 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 https://github.com/samtap/fang-hacks/pull/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:
-sh: 30-rtsp-watchdog: not found
when I try ls command, the file 30-rtsp-watchdog is listed in this directory Any ideas?
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 [email protected] 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 https://github.com/samtap/fang-hacks/pull/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 [email protected] 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 https://github.com/samtap/fang-hacks/pull/338?email_source=notifications&email_token=AALGAURD6FYSE33XAWHIMX3QMUFFRA5CNFSM4EZII3A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAGGLQA#issuecomment-537683392, or mute the thread https://github.com/notifications/unsubscribe-auth/AALGAUTJDQFRFEY3GUTMXSDQMUFFRANCNFSM4EZII3AQ .