From nobody Wed Jul 28 12:41:50 2021 X-Original-To: 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 9400612BB394 for ; Wed, 28 Jul 2021 12:41:50 +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 4GZYFV3kqsz4tJJ for ; Wed, 28 Jul 2021 12:41:50 +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) 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 69EE31E51C for ; Wed, 28 Jul 2021 12:41: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 16SCfoXm021103 for ; Wed, 28 Jul 2021 12:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16SCfoWC021102 for bugs@FreeBSD.org; Wed, 28 Jul 2021 12:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255198] daemon: Backport 4cd407ec/366098 -H option to stable/12 Date: Wed, 28 Jul 2021 12:41:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255198 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D7fa95d69f10827d0b02607682a2c4a151= 3d658e5 commit 7fa95d69f10827d0b02607682a2c4a1513d658e5 Author: Maxim Sobolev AuthorDate: 2020-09-24 02:44:58 +0000 Commit: Mark Johnston CommitDate: 2021-07-28 12:38:38 +0000 dd a new option (-H) to daemon(8) to catch SIGHUP and re-open output_fi= le file when received. The default system log rotation mechanism (newsyslog(8)) requires abili= ty to send signal to a daemon in order to properly complete rotation of the logs i= n an "atomic" manner without having to making a copy and truncating original file. Unfortunately our built-in mechanism to convert "dumb" programs into daemons has no w= ay to handle this rotation properly. This change adds this ability, to be enabled by supplying -H option in addition to the -o option. PR: 255198 Reviewed by: markj, rpokala (manpages) (cherry picked from commit 4cd407ec933b81d9d0f733532d29426416cccc06) usr.sbin/daemon/daemon.8 | 18 ++++++++++++-- usr.sbin/daemon/daemon.c | 63 ++++++++++++++++++++++++++++++++++++++++++--= ---- 2 files changed, 71 insertions(+), 10 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=