From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 14 10:06:59 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 75A42106564A for ; Thu, 14 Apr 2011 10:06:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id F11A98FC12 for ; Thu, 14 Apr 2011 10:06:58 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=oR3+9dOmPeF3nZCt5Gxyvf/bIpfj8bfjGZkkfp/xES8= c=1 sm=1 a=IU0TiZmyZPMA:10 a=56inIl8MvCoA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=D2Kj6TJTm-s0mWZ98BkA:9 a=2gruoFVNP8CDudnLx34A:7 a=wPNLvfGTeEIA:10 a=6RqQk-FQwCkA:10 a=x0uADENsyE8A:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 114265948; Thu, 14 Apr 2011 12:06:56 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Thu, 14 Apr 2011 12:05:53 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201104140955.p3E9tdNY020812@lurza.secnetix.de> In-Reply-To: <201104140955.p3E9tdNY020812@lurza.secnetix.de> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201104141205.53701.hselasky@c2i.net> Cc: Oliver Fromme 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:06:59 -0000 On Thursday 14 April 2011 11:55:39 Oliver Fromme wrote: > Matthias Apitz wrote: > > El d=C3=ADa Wednesday, April 13, 2011 a las 06:10:03PM +0200, Oliver F= romme=20 escribi=C3=B3: > > > Matthias Apitz wrote: > > > > I have webcamd-0.1.23 in a 9-CURRENT with ports from CVS from toda= y; > > > > even with the correct value in /etc/rc.conf webcamd does not start: > > > > [...] > > >=20 > > > > It seems to missing something: > > > Yes. You must specify the USB unit and address, which you > > > can lookup with usbconfig. For example, when the camera > > > attaches as ugen1.2, you must specify "1.2". > > >=20 > > > ... > >=20 > > But than the man page of webcamd(8) is incorrect (it says inserting a > > line in /etc/rc.conf is enough). And concerning the USB unit addr, I > > thought that webcamd(8) will just use the 1st unit which fits, at least > > it worked this way when I started webcamd(8) by hand without any > > further arguments. >=20 > 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. >=20 > 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. >=20 > 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" ... ;-) >=20 > Best regards > Oliver There was a bug in this area that was fixed some time back. If you use a=20 wrapper script you need to pass the $cdev that is coming from devd to webca= md=20 =2Dd xxxx . The reason for this change is to avoid races creating pid files. Instead of using -B you could get it working like before by adding a "&" to= =20 the end of the shell line. =2D-HPS