From owner-freebsd-elastic@freebsd.org Fri Mar 6 06:55:53 2020 Return-Path: Delivered-To: freebsd-elastic@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 0464C2611EB for ; Fri, 6 Mar 2020 06:55:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48YdgD43Y5z439K for ; Fri, 6 Mar 2020 06:55:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7FABD2611DE; Fri, 6 Mar 2020 06:55:52 +0000 (UTC) Delivered-To: elastic@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 7F48E2611DD for ; Fri, 6 Mar 2020 06:55:52 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48YdgC0dWtz437P for ; Fri, 6 Mar 2020 06:55:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F1F0A1C46F for ; Fri, 6 Mar 2020 06:55:50 +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 0266to67096020 for ; Fri, 6 Mar 2020 06:55:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0266toUm096019 for elastic@FreeBSD.org; Fri, 6 Mar 2020 06:55:50 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: elastic@FreeBSD.org Subject: [Bug 244627] sysutils/beats filebeat rc.d started with wrong path.home Date: Fri, 06 Mar 2020 06:55:50 +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 Only Me X-Bugzilla-Who: zhoutao@laocius.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: elastic@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 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 MIME-Version: 1.0 X-BeenThere: freebsd-elastic@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Support of ElasticSearch-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 06:55:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244627 Bug ID: 244627 Summary: sysutils/beats filebeat rc.d started with wrong path.home Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: elastic@FreeBSD.org Reporter: zhoutao@laocius.org Assignee: elastic@FreeBSD.org Flags: maintainer-feedback?(elastic@FreeBSD.org) Current rc.d script is starting with -path.home=3D/var/db/beats/filebeat. The correct path.home should be /usr/local/share/beats/filebeat. /var/db/beats/filebeat is only the data directory. Correct cli args should be "-path.data /var/db/beats/filebeat -path.config /usr/local/etc -path.home /usr/local/share/beats/filebeat" see diff below: --- /usr/local/etc/rc.d/filebeat.old 2020-01-06 12:52:53.000000000 +1100 +++ /usr/local/etc/rc.d/filebeat 2020-03-06 17:52:04.423819000 +1100 @@ -21,7 +21,7 @@ load_rc_config $name : ${filebeat_enable:=3D"NO"} -: ${filebeat_config:=3D"-path.home /var/db/beats/${name} -path.config /usr/local/etc"} +: ${filebeat_config:=3D"-path.home=3D/usr/local/share/beats/${name} -path.= data /var/db/beats/${name} -path.config /usr/local/etc"} Also I would suggest that path.config be /usr/local/etc/filebeat instead of /usr/local/etc --=20 You are receiving this mail because: You are the assignee for the bug.=