git: a871d0f13c56 - stable/14 - daemon: fix -R to enable supervision mode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Apr 2024 05:48:49 UTC
The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=a871d0f13c56f6ea2ec86ed8175634b562de514a commit a871d0f13c56f6ea2ec86ed8175634b562de514a Author: Mathieu <sigsys@gmail.com> AuthorDate: 2024-04-14 03:10:06 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2024-04-17 05:48:26 +0000 daemon: fix -R to enable supervision mode If we're doing restarts, then we must supervise -- the 'R' case simply got missed. PR: 278342 Fixes: f907027b49d ("daemon: set supervise_enabled during [..]") (cherry picked from commit bbc6e6c5ec8c7938b98a36899fa083aa7ce4724e) --- usr.sbin/daemon/daemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c index da8e4895e19b..52fbfca1dcd2 100644 --- a/usr.sbin/daemon/daemon.c +++ b/usr.sbin/daemon/daemon.c @@ -243,6 +243,7 @@ main(int argc, char *argv[]) if (p == optarg || state.restart_delay < 1) { errx(6, "invalid restart delay"); } + state.mode = MODE_SUPERVISE; break; case 's': state.syslog_priority = get_log_mapping(optarg,