From owner-freebsd-multimedia@freebsd.org Mon Apr 13 16:12:15 2020 Return-Path: Delivered-To: freebsd-multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C52E2C22B4 for ; Mon, 13 Apr 2020 16:12:15 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 491DCf37L2z3K2n for ; Mon, 13 Apr 2020 16:12:14 +0000 (UTC) (envelope-from fbl@aoek.com) Received: by mailman.nyi.freebsd.org (Postfix) id 6B5A62C22B3; Mon, 13 Apr 2020 16:12:14 +0000 (UTC) Delivered-To: multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6B1FF2C22B2 for ; Mon, 13 Apr 2020 16:12:14 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (mail.yourbox.net [IPv6:2001:41d0:1:767d::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.yourbox.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 491DCd3tw1z3K2g for ; Mon, 13 Apr 2020 16:12:13 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail.yourbox.net (8.15.2/8.15.2) with ESMTP id 03DGCAvo094900 for ; Mon, 13 Apr 2020 18:12:10 +0200 (CEST) (envelope-from fbl@aoek.com) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 13 Apr 2020 18:12:05 +0200 From: =?UTF-8?Q?Jos=C3=A9_P=C3=A9rez?= To: multimedia@freebsd.org Subject: Re: rcorder circular dependency in webcamd In-Reply-To: <93eeea0f-6b31-ce4f-29af-f19fb76b874f@selasky.org> References: <93eeea0f-6b31-ce4f-29af-f19fb76b874f@selasky.org> Message-ID: <32d574b7ee703686c385b0b35cf20bae@mail.yourbox.net> X-Sender: fbl@aoek.com User-Agent: Roundcube Webmail/1.2.0 X-Rspamd-Queue-Id: 491DCd3tw1z3K2g X-Spamd-Bar: - X-Spamd-Result: default: False [-1.26 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.78)[-0.782,0]; R_DKIM_ALLOW(-0.20)[aoek.com:s=mailbox]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[multimedia@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.87)[-0.866,0]; IP_SCORE(1.39)[ipnet: 2001:41d0::/32(4.92), asn: 16276(2.03), country: FR(0.00)]; DKIM_TRACE(0.00)[aoek.com:+]; DMARC_POLICY_ALLOW(-0.50)[aoek.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2020 16:12:15 -0000 El 2020-04-13 14:17, Hans Petter Selasky escribió: > On 2020-04-13 13:23, Hans Petter Selasky wrote: > I think the idea behind the BEFORE keyword, is that the webcamd rc.d > file, supports a special mode where instances are launched by the > rc.conf configuration. To not conflict with devd's automatic > attachment of webcamd instances. > > --HPS You mean there is a use case when webcamd starts before devd? If you want that you need to drop the conflicting REQUIRED dependencies: -# REQUIRE: FILESYSTEMS +# REQUIRE: FILESYSTEMS netif dbus # BEFORE: devd In this case the theoretical rcorder will be: /etc/rc.d/FILESYSTEMS ... /usr/local/etc/rc.d/webcamd ... /etc/rc.d/devd But it's not (I just tried) as devd is kicked in very early and can't dig and find out why now. So the BEFORE: is definitely ignored in any case and does not affect rcorder. I think you can remove it. Regards, -- José Pérez