1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

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:	f907027b49 ("daemon: set supervise_enabled during [..]")
This commit is contained in:
Mathieu 2024-04-13 22:10:06 -05:00 committed by Kyle Evans
parent f3f04c4027
commit bbc6e6c5ec

View File

@ -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,