From nobody Sat Apr 13 05:44:19 2024 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 4VGj6r2KbQz5GyDn for ; Sat, 13 Apr 2024 05:44:20 +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 4VGj6r1GMKz4J4x for ; Sat, 13 Apr 2024 05:44:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712987060; a=rsa-sha256; cv=none; b=ABV/2y1rLdgzk6PGqxFDuIv3fezuFk5TkXcxNvsWi7p2xqyaG832H/DzwCvAPLqa2qj9jy nG/3qsggZPFdBCYSRHUlQ+X66vBKUiSaCBbzB7EQbZeV3mgCqFzu3Tn4yrP+7vk1NQmxeo OoEFudcNRuBLwq1clpSxos27a62WEVyCbGij3Dj+TS3Ff9g7Zd/6x1ScrG6zQHNt/PUyEp /x/X3LNDsdGw1C/r/rW0ecihdjDLH7q2DgkWEu2eFE0uzy7UJyKOXZ4xFnsal6/pnV0h5T 0AqJ+HZSGtyctUvmdKhxHpsIBiBleznUGClVJc1nRnceE4a8Y0ZO0f3mPPHxAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712987060; 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=1I2qRHeMwdPPMWMKzCmGKjnVwwkoqWXCzHkwLZkgLy8=; b=pBugAc0OnrZ/oojVfLkIePuz7RJSdvCS6a0gGm+yyygSoRCkAF6bbQcdBt135UlRqDbC72 hMxD4J2sV/xypUxc4HZrxvxuyaQUoEVpzjdagDH4P9aNlipRsT5xKBaMRWMFnYH6w44Hhd zH+6LHyrdDxSYfplaaQkRycU+98WP9+dyCPbecBjleNmhiXtZUfjteL591f4wFJx+CDx5u 3M0uYIpWq+sNO90hDSxV0/HTxPDDwWmkPCHElx1Aox1UnViHPY9GD70pRccncSLDMeFEhS r9NdBk0f9CcmykYdXrNuaH1sM12IYpPIIviaPTU35xV7zetNjXjIag9Nnx8C0Q== 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 4VGj6r0lwqzLRg for ; Sat, 13 Apr 2024 05:44:20 +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 43D5iKDE050800 for ; Sat, 13 Apr 2024 05:44:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43D5iKIZ050799 for bugs@FreeBSD.org; Sat, 13 Apr 2024 05:44:20 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: bugs@FreeBSD.org Subject: [Bug 278342] daemon(8): -R doesn't restart supervised process Date: Sat, 13 Apr 2024 05:44:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sigsys@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278342 Bug ID: 278342 Summary: daemon(8): -R doesn't restart supervised process Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: sigsys@gmail.com When certain other options are also specified it might work correctly, but = with -R alone, "supervise mode" doesn't kick in. Using -R alone used to work on previous versions. diff --git i/usr.sbin/daemon/daemon.c w/usr.sbin/daemon/daemon.c index da8e4895e19b..52fbfca1dcd2 100644 --- i/usr.sbin/daemon/daemon.c +++ w/usr.sbin/daemon/daemon.c @@ -240,12 +240,13 @@ main(int argc, char *argv[]) case 'R': state.restart_enabled =3D true; state.restart_delay =3D strtol(optarg, &p, 0); if (p =3D=3D optarg || state.restart_delay < 1) { errx(6, "invalid restart delay"); } + state.mode =3D MODE_SUPERVISE; break; case 's': state.syslog_priority =3D get_log_mapping(optarg, prioritynames); if (state.syslog_priority =3D=3D -1) { errx(4, "unrecognized syslog priority"); --=20 You are receiving this mail because: You are the assignee for the bug.=