git: bbc6e6c5ec8c - main - daemon: fix -R to enable supervision mode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Apr 2024 03:13:02 UTC
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=bbc6e6c5ec8c7938b98a36899fa083aa7ce4724e
commit bbc6e6c5ec8c7938b98a36899fa083aa7ce4724e
Author: Mathieu <sigsys@gmail.com>
AuthorDate: 2024-04-14 03:10:06 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2024-04-14 03:12:36 +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 [..]")
---
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 dd3315dadee4..26e34d1d2e2b 100644
--- a/usr.sbin/daemon/daemon.c
+++ b/usr.sbin/daemon/daemon.c
@@ -248,6 +248,7 @@ main(int argc, char *argv[])
if (e != NULL) {
errx(6, "invalid restart delay: %s", e);
}
+ state.mode = MODE_SUPERVISE;
break;
case 's':
state.syslog_priority = get_log_mapping(optarg,