From nobody Wed Dec 11 20:36:56 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y7nT514Pkz5gRcJ for ; Wed, 11 Dec 2024 20:36:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7nT459JNz4ktC for ; Wed, 11 Dec 2024 20:36:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733949416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=75wrBuhG7aDLAU/h8JXWLsO2a0u9RVm29AJrEjo8LiU=; b=dKajVHSnp+X92YecNCVDR0he2PGPFfjd94VMpQbSgaPHJXSnVpi/kekYyIvt5zNJpRWib+ 2q8yeuyWGHbufgurUyE8gVJHiMrctwcoqGzNAT8+so+XUa2eVmu5beNAP8E1UpQuPWM/h4 QIpgzAFk61wFI4BuFcnJNv0iVyu2UxvAPG+zJefAkPxm02jcM8Nq6d48bLVYC7OQ/I6nws s15kki1+Fc3EGt8lKykW9Bo9LVUKpL++5qOWtE3zIs6BbApKs/6qvz31p88T7Gy8h2bTrh TdZW6+l3PfUCvC8AWl4XuafMVQ1Wl6rNDc+lLmBENGXspDc/cOty2aSHOdXygg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733949416; a=rsa-sha256; cv=none; b=CGhTTn+FLo5Oo7hcH3R0b2QPQXFop/e0hENCy+gQEtNdbYoToe+ECgY8bG7H6sArbVE8q2 Px0iOYrRW3UHNBDmq5yNupfz+OuiDWo3/qab/W/KuXb6unykuwauzkW/5790RmilFpqj1/ kwwZruF4EDtMJF6dZGdn9/RJeFC/8NYQpR3rgQbj5Md2aXwVWq7m1S+XqimJMtz8V/4kZq 2wfqFe6B8VB66teZowhUBtJ2pXKM5Xf3gzYN9wPwV5xw0MK7O9OQhDvyqdZxG/RuTaFeYM Ev21m6hNZRYmLzxMt8A0+AMNlDLzYX8xuU9Q1o6yDQw+LOng38/t0fxXeTooPA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y7nT44fMXzNYp for ; Wed, 11 Dec 2024 20:36:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BBKauM9051870 for ; Wed, 11 Dec 2024 20:36:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BBKausH051869 for ports-bugs@FreeBSD.org; Wed, 11 Dec 2024 20:36:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 283270] textproc/apache-solr: Use sockstat instead of lsof in startup script Date: Wed, 11 Dec 2024 20:36:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd@koenigbj.8bx.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mfechner@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283270 Bug ID: 283270 Summary: textproc/apache-solr: Use sockstat instead of lsof in startup script Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mfechner@FreeBSD.org Reporter: freebsd@koenigbj.8bx.de Assignee: mfechner@FreeBSD.org Flags: maintainer-feedback?(mfechner@FreeBSD.org) Created attachment 255790 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D255790&action= =3Dedit Patch bin/solr to use sockstat instead of lsof When starting solr, an annoying message appears that lsof is not installed = and that the script needs it to determine whether solr is running. If lsof is installed, it does not work immediately because /usr/local/sbin is not in t= he path. And even if it is, it still does not work because lsof does not work = as expected with the parameters used. The dependency on lsof is unnecessary because sockstat is sufficient. This patch lets the script perform the check using sockstat. This patch also adds an extra 'echo' to fix a line break. Before: # service solr start NOTE: Please install lsof as this script needs it to determine if Solr is listening on port 8983. Started Solr server on port 8983 (pid=3D28172). Happy searching! After: # service solr start Waiting up to 180 seconds to see Solr running on port 8983 [\] Started Solr server on port 8983 (pid=3D87731). Happy searching! --=20 You are receiving this mail because: You are the assignee for the bug.=