mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +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:
parent
f3f04c4027
commit
bbc6e6c5ec
|
@ -248,6 +248,7 @@ main(int argc, char *argv[])
|
||||||
if (e != NULL) {
|
if (e != NULL) {
|
||||||
errx(6, "invalid restart delay: %s", e);
|
errx(6, "invalid restart delay: %s", e);
|
||||||
}
|
}
|
||||||
|
state.mode = MODE_SUPERVISE;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
state.syslog_priority = get_log_mapping(optarg,
|
state.syslog_priority = get_log_mapping(optarg,
|
||||||
|
|
Loading…
Reference in a new issue