From owner-freebsd-current@freebsd.org Sat Feb 20 14:33:27 2021 Return-Path: Delivered-To: freebsd-current@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 1A6E2548046 for ; Sat, 20 Feb 2021 14:33:27 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from out.alvermark.net (out.alvermark.net [185.34.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DjWC94tT4z3kch for ; Sat, 20 Feb 2021 14:33:25 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from c-f649235c.06-431-73746f70.bbcust.telenor.se ([92.35.73.246] helo=mail.alvermark.net) by out.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1lDTJt-000K7U-0H; Sat, 20 Feb 2021 15:33:17 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alvermark.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=n5ApafOcjgU2Sfu839rLXpL0AwTDbH1ba9jxxMui6NA=; b=fSaNUi85m7pwGY+dFCiHWfqbIR wPOkkgscWm/Js8+dAVhbQBTZzCrGuj6/E7ZF6S668ovr14WMKBHU2L6L9x/oO5GbrH75csrNuRx8t Q63ojZQQ0kUdn8ReMWRZRTLIGwsApxnc6R2qOe8Brccr3aZGiWdtob5zkgculJPHLc96KoYOW38vN DCK94uAixBA+BYszPYDpM3DDeQfC8AKDyCkmtAFmSNchfl7Uw4cRVc0VVORJxtM9Ft3UoAt7GjkhR leahC8X1GBeXA6azEEtr4zscoARRWRz+1c5Wl/gsXT4zn3mB2lQPaWRJzXQEb5A2cfXJyUnEmpKZr YFo+AsWA==; Received: from [192.168.67.27] by mail.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1lDTJs-000IR7-HJ; Sat, 20 Feb 2021 15:33:16 +0100 Subject: Re: webcamd not started automatically To: Hans Petter Selasky , Steve Wills , freebsd-current References: <69de9fde-4c3f-f909-359c-0156767b121c@alvermark.net> <8709cf86-0439-e3c8-a416-6c68c577939d@selasky.org> <2577c0ad-00aa-5da8-ab7f-98672c598674@alvermark.net> <037d398c-e6d0-f805-b5da-9c6a7ab6e097@mouf.net> From: Jakob Alvermark Message-ID: <31d7c2f5-6d20-743e-f7d1-e735234f938f@alvermark.net> Date: Sat, 20 Feb 2021 15:33:16 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4DjWC94tT4z3kch X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=alvermark.net header.s=x header.b=fSaNUi85; dmarc=none; spf=pass (mx1.freebsd.org: domain of jakob@alvermark.net designates 185.34.136.138 as permitted sender) smtp.mailfrom=jakob@alvermark.net X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[alvermark.net:s=x]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:185.34.136.138]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[alvermark.net: no valid DMARC record]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[185.34.136.138:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[alvermark.net:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[185.34.136.138:from]; ASN(0.00)[asn:34971, ipnet:185.34.136.0/23, country:IT]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2021 14:33:27 -0000 On 2/20/21 1:34 AM, Hans Petter Selasky wrote: > On 2/18/21 5:27 PM, Jakob Alvermark wrote: >> On 2/18/21 4:49 PM, Steve Wills wrote: >>> Hi, >>> >>> On 2/18/21 9:14 AM, Jakob Alvermark wrote: >>>> It used to start webcamd for both of them, now it is only started >>>> for the built in Chicony. >>> >>> I have a similar problem. I have 3 cameras (one Logitech and two USB >>> UVD things) and now it only starts webcamd for one. I can start it >>> manually for the other two. I don't have the details now, but it >>> seemed like when I started it for the second or third device, it >>> said it was already running until I tried again. >>> >> Yes, there is something going on when you try to start multiple >> instances. >> >> My cameras are at ugen1.7 and ugen2.4 >> >> # service webcamd start ugen1.7 >> webcamd 4778 - - Attached to ugen1.7[0] >> # service webcamd start ugen2.4 >> webcamd already running?  (pid=4779). >> # service webcamd stop >> Stopping webcamd. >> Waiting for PIDs: 4779 >> # service webcamd start ugen2.4 >> webcamd 4830 - - Attached to ugen2.4[0] >> # service webcamd start ugen1.7 >> webcamd already running?  (pid=4831). >> >> # ls /var/run/webcamd.* >> /var/run/webcamd.1.7.0.pid    /var/run/webcamd.2.4.0.pid >> >> # cat /var/run/webcamd.1.7.0.pid >> 4778 >> >> # cat /var/run/webcamd.2.4.0.pid >> 4830 >> > > Can you show: > > ls /var/run/webcamd* for every step you do? Sure: # service webcamd start ugen1.7 webcamd 19267 - - Attached to ugen1.7[0] # ls /var/run/webcamd.* /var/run/webcamd.1.7.0.pid    /var/run/webcamd.2.4.0.pid # cat /var/run/webcamd.1.7.0.pid 19267# # service webcamd start ugen2.4 webcamd already running?  (pid=19268). # ls /var/run/webcamd.* /var/run/webcamd.1.7.0.pid    /var/run/webcamd.2.4.0.pid # service webcamd stop Stopping webcamd. Waiting for PIDs: 19268 # ls /var/run/webcamd.* /var/run/webcamd.1.7.0.pid    /var/run/webcamd.2.4.0.pid # service webcamd start ugen2.4 webcamd 19312 - - Attached to ugen2.4[0] # ls /var/run/webcamd.* /var/run/webcamd.1.7.0.pid    /var/run/webcamd.2.4.0.pid # service webcamd start ugen1.7 webcamd already running?  (pid=19313). # ls /var/run/webcamd.* /var/run/webcamd.1.7.0.pid    /var/run/webcamd.2.4.0.pid # cat /var/run/webcamd.1.7.0.pid 19267# Jakob