fang-hacks icon indicating copy to clipboard operation
fang-hacks copied to clipboard

patch rtsp watchdog

Open freeznk9 opened this issue 6 years ago • 11 comments

when RTSP Server "snx_rtsp_server" was hang, watchdog will start rtsp server.

freeznk9 avatar Apr 06 '18 13:04 freeznk9

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.

carmenchui avatar Apr 08 '18 14:04 carmenchui

Hi, sorry but I'm completely green in linux. Can you explain how to do it step by step? thx

effendieffendi avatar Apr 26 '18 14:04 effendieffendi

Nice feature, why doesn't this get merged? Is the project abandoned?

Bechrissed avatar Jun 27 '18 12:06 Bechrissed

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?

mirjef avatar Oct 01 '19 21:10 mirjef

Have you tried running both fang-rtsp-watchdog.sh and 30-rtsp-watchdog manually, and see if it raises an error?

gokuu avatar Oct 01 '19 21:10 gokuu

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

mirjef avatar Oct 02 '19 18:10 mirjef

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 .

gokuu avatar Oct 02 '19 18:10 gokuu

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?

mirjef avatar Oct 02 '19 19:10 mirjef

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 avatar Oct 02 '19 20:10 gokuu

@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!!

mirjef avatar Oct 02 '19 21:10 mirjef

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 .

gokuu avatar Oct 02 '19 21:10 gokuu