[Bug 292782] sysutils/fluent-bit: Improve RC script and fix issues

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 28 Jan 2026 14:46:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292782

            Bug ID: 292782
           Summary: sysutils/fluent-bit: Improve RC script and fix issues
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: girgen@FreeBSD.org
          Reporter: michaelo@FreeBSD.org
             Flags: maintainer-feedback?(girgen@FreeBSD.org)
          Assignee: girgen@FreeBSD.org

Created attachment 267573
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267573&action=edit
Git-formatted patch

pidfile_remove() fails:
> fstat(5,{ mode=-rw------- ,inode=643019,size=5,blksize=4096 }) = 0 (0x0)
> funlinkat(0x4,0x356271396409,0x5,0x0)            ERR#13 'Permission denied'

The other improvements do work flawlessly with a custom user:
>   PID△USER       PRI  NI  VIRT   RES S  CPU% MEM%   TIME+  Command
> 25921 fluent-bit  52   0 12804  2436 S   0.0  0.0  0:00.00 daemon: fluent_bit[25922]
> 25922 fluent-bit  20   0 40820 12644 S   0.0  0.0  0:00.01 └─ /usr/local/bin/fluent-bit --quiet --config /usr/local/etc/fluent-bit/fluent-bit.conf

Fix mode of PID file

-- 
You are receiving this mail because:
You are the assignee for the bug.