From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 13 18:16:22 2010 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 2DD42106566B for ; Mon, 13 Dec 2010 18:16:22 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by mx1.freebsd.org (Postfix) with ESMTP id D5BE18FC08 for ; Mon, 13 Dec 2010 18:16:21 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ignis-smin.broadpark.no ([80.202.8.11]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LDD00258PF8KPB0@thalia-smout.broadpark.no> for freebsd-multimedia@FreeBSD.org; Mon, 13 Dec 2010 19:16:20 +0100 (CET) Received: from kg-v2.kg4.no ([84.48.120.77]) by ignis-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with SMTP id <0LDD00JDUPF7MDH2@ignis-smin.broadpark.no> for freebsd-multimedia@FreeBSD.org; Mon, 13 Dec 2010 19:16:20 +0100 (CET) Date: Mon, 13 Dec 2010 19:16:19 +0100 From: Torfinn Ingolfsen To: freebsd-multimedia@FreeBSD.org Message-id: <20101213191619.7b31424c.torfinn.ingolfsen@broadpark.no> In-reply-to: <201012131813.24629.hselasky@c2i.net> References: <201012122245.34561.hselasky@c2i.net> <201012130941.08527.hselasky@c2i.net> <20101213172621.523329a3.torfinn.ingolfsen@broadpark.no> <201012131813.24629.hselasky@c2i.net> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Cc: Subject: Re: Webcamd v0.1.18 ready for testing [was: v0.1.17] 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: Mon, 13 Dec 2010 18:16:22 -0000 On Mon, 13 Dec 2010 18:13:24 +0100 Hans Petter Selasky wrote: > On Monday 13 December 2010 17:26:21 Torfinn Ingolfsen wrote: > > First of all; isn't requiring other parameters in addition to rcvar a POLA > > violation? > > I needed to do this to avoid more warnings. webcamd isn't really a daemon you > can start and stop. It only is supposed to start when receiving devd events. > > Regarding the rcvar, maybe that can be fixed. Do you know what I need to add > to webcamd's rc.d script? I'm no expert, but first of all, you need to move the run_rc_command $1 outside of the if statement, or else no command will be performed. Just move it to the bottom opf the script, like so: run_rc_command "$1" As for the conditions you have inside the if statement, perhaps you can make a start_precmd function, and put the stuff in there? See for example /usr/local/etc/rc.d/cupsd /usr/local/etc/rc.d/dbus /usr/local/etc/rc.d/hald for examples. HTH -- Torfinn