Motion - Bug Report 2006x 01x 31x 000814

BUG: Motion won't exit until it has reconnected to all cameras after a successful start

If you do a kill -TERM on motion, it won't exit until it has reconnected to all cameras first.

This is a logic error since you don't want to have to wait until it connects back to a camera before exiting. If the camera has died, then it will never exit an you'll have to do a nasty kill -9 on it.

Test case

Jan 30 18:56:05 ns motion: [2] netcam: exiting loop...
Jan 30 18:56:08 ns motion: [1] netcam: connect() : No route to host
Jan 30 18:56:08 ns motion: [1] netcam: reconnecting [2]
Jan 30 18:56:36 ns dhcpd: DHCPDISCOVER from xx:xx:xx:xx:xx:xx via eth0
Jan 30 18:56:36 ns dhcpd: DHCPOFFER on 192.168.0.121 to 00:14:d1:8a:03:6e via eth0
Jan 30 18:56:36 ns dhcpd: DHCPREQUEST for 192.168.0.121 (192.168.0.107) from xx:xx:xx:xx:xx:xx via eth0
Jan 30 18:56:36 ns dhcpd: DHCPACK on 192.168.0.121 to xx:xx:xx:xx:xx:xx via eth0
Jan 30 18:56:38 ns motion: [1] netcam: reconnection successful [3]
Jan 30 18:56:38 ns motion: [1] netcam: freeing data...
Jan 30 18:56:38 ns motion: [1] netcam: exiting loop...
Jan 30 18:56:39 ns motion: motion terminating

Cameras are D-Link DCS900W/Trendnet TV-IP100W (basically the same camera, but different manufacturer)

Environment

Motion version: 3.2.1
ffmpeg version: ffmpeg-0.4.8-4.rhfc2.at
Shared libraries: ffmpeg, mysql, postgresql, xmlrpc-c-0.9.10-1
Server OS: Fedora Core 4 2.6.14-1.1653_FC4.netdev.6

-- JeffGroves - 31 Jan 2006

Follow up

Fix record

It must have been a problem related to 3.2.1.

It stops fine at the current 3.2.5 daily.

Try 3.2.5 when it gets released. Probably in 1-2 days from now.

-- KennethLavrsen - 22 Feb 2006

Yes, the problem cleared-up with the 3.2.5 release. Thanks a bunch!

-- JeffGroves - 01 Jun 2006

BugReportForm edit

TopicTitle Motion won't exit until it has reconnected to all cameras after a successful start
BugStatus Released
AssignedBugTo KennethLavrsen
SubmittedBy JeffGroves
Topic revision: r7 - 20 Oct 2006, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.