From nobody Fri Feb 10 23:45:21 2023 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 4PD9Mk4877z3nTxl for ; Fri, 10 Feb 2023 23:45:22 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PD9Mk1YyCz4GJF for ; Fri, 10 Feb 2023 23:45:22 +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=1676072722; 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=yP3x/3vG546g9VRx89lKoLbL1PFEkk0O7cTGecnxhIM=; b=jqcvht2c79wEH1ENZWgTA0GVCB7gAq4qK6xv572M2fAaBxtd6lnFNc2kBgy/Cv1Rn+N7XP 4XreajDh9NS1pYMqOJ5+ZGc78s9K+qFVdHj+EceuDus121P9oWuuuGfpOOLb0Nec8AFmB8 6xDxNx5E/h30uqCzC4OZ4JjFxNVvBn3VKo5UgEeBuLiV+rB1p//UN359lUXhnpw+ExBkot PLasR0GjSFVOjojHV6mAA1f07ZDPOuTJBWVkyyytUhVRYY48TTq7FWj/iv4TGRYmw+aCqr Dtn7JJel3XULtmXksk2GbI/B4aBurk+eShZt4G4kE1FwdDLl23MZDivF6CF0Uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676072722; a=rsa-sha256; cv=none; b=acTSn0mP1fD3ARvQwIKq287UPHZCq6KY7CPlK4QOqnl6+aaNa9R5LdfkHGoOq/aaq9dQ+U UC2JY3iVV07eZgzkE2MmdLHTHeMX3TPZkRPc11qoiB6THqO1DovZD4boks3LRZfXqjUnKY 0B12OZIJoWlXu7NC0DG4bIPPgM6dm7H/4EPmfoaZidknAey5qeP9MOdnS2v9v1W9q3H0b+ GLi0/R6IHjiCpTPO/gsTdPC5XSFKQYn/jpXDyueXhQD/LbauljakXzuWS2bRLwUslKSe1e spEZDllX1fbq6xNEAlcb0R7lFwsbtV621h4ee/9DgB+FmlXS4rAsUU4gT3L6ZA== 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 4PD9Mk0fSQzdCJ for ; Fri, 10 Feb 2023 23:45:22 +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 31ANjM2j060835 for ; Fri, 10 Feb 2023 23:45:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31ANjMKD060834 for ports-bugs@FreeBSD.org; Fri, 10 Feb 2023 23:45:22 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 269480] sysutils/fluent-bit: rc.d script should not use --daemon option when combined with daemon command Date: Fri, 10 Feb 2023 23:45:21 +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: hiroo.ono+freebsd@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: girgen@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: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269480 Bug ID: 269480 Summary: sysutils/fluent-bit: rc.d script should not use --daemon option when combined with daemon command Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: girgen@FreeBSD.org Reporter: hiroo.ono+freebsd@gmail.com Flags: maintainer-feedback?(girgen@FreeBSD.org) Assignee: girgen@FreeBSD.org Created attachment 240071 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D240071&action= =3Dedit patch to fluent-bit.in The option --daemon is passed to fluent-bit in the rc.d script. This makes = the pid of fluent-bit not matching with the one written if /var/run/fluent-bit.= pid. The file /var/run/fluent-bit.pid is written by daemon command, where the va= lue is the pid of the child process which executes fluent-bit. If you pass --da= emon option, fluent-bit itself forks and executes again and the pid becomes different from the pid written in the pid file. Try 'service fluent-bit start' and see the value of 'pgrep fluent-bit' and = 'cat /var/run/fluent-bit.pid'. This makes 'service fluent-bit stop' and 'service fluent-bit status' not working. Also, the daemon command daemonize a program running foreground, so there is no need to set --daemon option to fluent-bit. --=20 You are receiving this mail because: You are the assignee for the bug.=