git: 1e2be096d425 - stable/13 - daemon: fix -R to enable supervision mode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Apr 2024 05:50:15 UTC
The branch stable/13 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=1e2be096d4252308db35b0424bd408c2b8aa5990
commit 1e2be096d4252308db35b0424bd408c2b8aa5990
Author: Mathieu <sigsys@gmail.com>
AuthorDate: 2024-04-14 03:10:06 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2024-04-17 05:50:03 +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,