From owner-freebsd-ports@freebsd.org Fri Mar 19 20:14:30 2021 Return-Path: Delivered-To: freebsd-ports@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 66AB05AA373 for ; Fri, 19 Mar 2021 20:14:30 +0000 (UTC) (envelope-from dan@langille.org) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F2FVF4wDrz3qVL for ; Fri, 19 Mar 2021 20:14:29 +0000 (UTC) (envelope-from dan@langille.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0CCC21671; Fri, 19 Mar 2021 16:14:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 19 Mar 2021 16:14:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; s=fm3; bh=winnNSIjRileAYZL+ir2yvVvixErcZ swO2xv53mr9Mk=; b=gjGUYP+ZaNNUh1KuS5eGkQRQuOJLdBacjC9e45/D2QIdWN iwqF4Miy3UGlCkfR2hAJLMvK4hiWPEnbLly8FvMqfzuRqRtK43iJZ/vwb3sWFVNV ua1vH6jmJSQTk3ft9iPn8HDlqDmh/W2HGjjPR9ZXGtsT7YNj4B9Nl0g6J0TZ1W5q kQP7+sd6uHX6JPnEHxpZZMW0TWMBFn/Kupgnp/s+SF1joK1uTf6NWiOqUVJjLC8s 7E5fLGlwdp479RYZq01Gz1JjzxwiyUPowRBR6iHsErRgudnrqboEr1O08LEzPcng fkKfYG/gwGx9UmlA+eHHM/IE595IEX0Uizx9nWGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=winnNS IjRileAYZL+ir2yvVvixErcZswO2xv53mr9Mk=; b=I9kQduXajXHQEfaaRNZBoz oUC/XT5/dJlttfq/qOEGE3YnpE8PEv3ZvTOS0YIIjfuGsGY2G5bxHYWFBfqHT3tj brj9qefT8saTZ49pORG8UYSUia/eacnX5d5JnV14Y52PwYUtwDZQEqVXnuZNm7Bx gXdaRDxLWJ4xuwi9SyKJSgx5TvRZUrhFr9pfjLL1AYVcM3bTXf5sJLVTrrJIa23t QwGoLkNEOP4ddXmZKIxLpU8ZI6UsmJHs0r0CgAy+Y6TESfCblCDbdb8NK4h0NGB5 tro2GSgA3u3R8881vm7vXspqVNznzoE+4aYIURYFzA/37SRffff9tSyft0xLPVwQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeflecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhtgfgggfukfffvffosehtqhhmtdhhtdejnecuhfhrohhmpeffrghnucfnrghnghhi lhhlvgcuoegurghnsehlrghnghhilhhlvgdrohhrgheqnecuggftrfgrthhtvghrnheptd ektdeghfehueeluedvhfejgeffuedvhfeifffgudduieetudetfeehteeiffeunecuffho mhgrihhnpehfrhgvvggsshgurdhorhhgpdhmohhsqhhuihhtthhordhorhhgpdhlrghngh hilhhlvgdrohhrghenucfkphepuddtkedrhedvrddvfeejrddufeefnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggrnheslhgrnhhgihhllh gvrdhorhhg X-ME-Proxy: Received: from pro02.wifi.int.unixathome.org (pool-108-52-237-133.phlapa.fios.verizon.net [108.52.237.133]) by mail.messagingengine.com (Postfix) with ESMTPA id CC8A324005A; Fri, 19 Mar 2021 16:14:25 -0400 (EDT) From: Dan Langille Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: FreeBSD Port: net/mosquitto pidfile or pid_file Message-Id: <8A3FBDC9-B1F2-41F2-B3EF-187E53AF9F85@langille.org> Date: Fri, 19 Mar 2021 16:14:25 -0400 Cc: FreeBSD Ports To: joe@thrallingpenguin.com X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4F2FVF4wDrz3qVL X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm3 header.b=gjGUYP+Z; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=I9kQduXa; dmarc=pass (policy=none) header.from=langille.org; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 64.147.123.25 as permitted sender) smtp.mailfrom=dan@langille.org X-Spamd-Result: default: False [-3.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.25:from]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[64.147.123.25:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_NEUTRAL(0.00)[64.147.123.25:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; FREEFALL_USER(0.00)[dan]; FROM_HAS_DN(0.00)[]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm3,messagingengine.com:s=fm2]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[64.147.123.25:from:127.0.2.255]; RECEIVED_SPAMHAUS_PBL(0.00)[108.52.237.133:received]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2021 20:14:30 -0000 Joe, I updated my mosquitto a few days ago and today it was restarted, but = won't start. I think it's related to the update. Mar 14 01:47:40 supernews pkg[40249]: mosquitto upgraded: 1.6.7_1 -> = 2.0.8 The rc.d sript for net/mosquitto greps for pidfile. re: = https://svnweb.freebsd.org/ports/head/net/mosquitto/files/mosquitto.in?rev= ision=3D481153&view=3Dmarkup#l30 The documentation refers to pid_file, not pidfile. re: http://mosquitto.org/man/mosquitto-conf-5.html I think the rc.d script needs an update. I'd help with a patch, but I = can't get a working solution. $ grep pid /usr/local/etc/rc.d/mosquitto=20 pidfile=3D$(grep pid_file ${mosquitto_config} | awk '{print($2)}') echo "pidfile =3D '$pidfile'" rm -f $pidfile $ sudo service mosquitto start pidfile =3D '/var/run/mosquitto.pid' Starting mosquitto. $ ps auwwx | grep mos dan 20215 0.0 0.0 11404 2260 1 S+ 20:12 0:00.00 = grep mos $=20 $ sudo /usr/local/sbin/mosquitto -c = /usr/local/etc/mosquitto/mosquitto.conf -v 1616184446: Error: Unable to write pid file. $ ls -ld /var/run drwxr-xr-x 15 root wheel 1024 Mar 19 20:12 /var/run $ ls -l /var/run/mosquitto.pid ls: /var/run/mosquitto.pid: No such file or directory =E2=80=94=20 Dan Langille http://langille.org/