[Bug 291097] sysutils/jail_exporter: does not close stdio when daemonizing

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 19 Nov 2025 15:11:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291097

            Bug ID: 291097
           Summary: sysutils/jail_exporter: does not close stdio when
                    daemonizing
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org
                CC: dor.bsd@xm0.uk
                CC: dor.bsd@xm0.uk
             Flags: maintainer-feedback?(dor.bsd@xm0.uk)

The RC script for jail_exporter uses /usr/sbin/daemon to run in the background.
 However, it leaves stdout, stdin, and stderr connected.  That causes salt to
hang when it tries to restart jail_exporter.  It might cause problems for other
programs too.  Best to close stdout, stdin, and stderr.  Logging to syslog will
still work.

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