From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 14 10:40:14 2011 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 455981065674 for ; Thu, 14 Apr 2011 10:40:14 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id A35A08FC08 for ; Thu, 14 Apr 2011 10:40:13 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id p3EAdr8k022459; Thu, 14 Apr 2011 12:40:08 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p3EAdrR8022458; Thu, 14 Apr 2011 12:39:53 +0200 (CEST) (envelope-from olli) Date: Thu, 14 Apr 2011 12:39:53 +0200 (CEST) Message-Id: <201104141039.p3EAdrR8022458@lurza.secnetix.de> From: Oliver Fromme To: freebsd-multimedia@FreeBSD.ORG, hselasky@c2i.net In-Reply-To: <201104141205.53701.hselasky@c2i.net> X-Newsgroups: list.freebsd-multimedia User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Thu, 14 Apr 2011 12:40:09 +0200 (CEST) Cc: Subject: Re: webcamd-0.1.23 does not start via rc.d X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2011 10:40:14 -0000 Hans Petter Selasky wrote: > On Thursday 14 April 2011 11:55:39 Oliver Fromme wrote: > > Well, I don't use the rc.conf entry at all because my webcam > > is usually not plugged in during boot. I have to use an > > entry in devd.conf instead so webcamd starts when I plug the > > webcam in. This is why I need the aforementioned wrapper > > script; it simply does not work otherwise. > > > > I don't remember exactly what was wrong, it's a few months > > ago. But I can tell you for sure that it did *not* work out > > of the box according to the documentation, so I had to write > > that script. At that time I assumed that it was some 8-stable > > vs. 9-current thing ... As I wrote previously, I didn't care > > too much since I got it working with that trivial wrapper > > script. > > > > Maybe it works out of the box with today's 8-stable, but > > I'm reluctant to try because, you know, "never change a > > running system" ... ;-) > > There was a bug in this area that was fixed some time back. If you use a > wrapper script you need to pass the $cdev that is coming from devd to webcamd > -d xxxx . The reason for this change is to avoid races creating pid files. The "$cdev" thing in devd.conf was *not* working. I don't remember if it contained the wrong value or if it was just empty. It did not work. Otherwise I wouldn't have to use a separate script at all. My wrapper script parses the output of usbconfig to get the correct device. That works reliably. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Whatever happened to the days when hacking started at the cerebral cortex, and not at the keyboard?" -- Sid on userfriendly.org by Illiad, 2007-06-20