mirror of
https://github.com/troglobit/finit.git
synced 2026-10-28 12:30:44 +00:00
Allow debug mode to override terse mode
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
fa3a97366c
commit
a5c5a5c644
2 files changed
+5
-1
No files matched your search
@@ -266,6 +266,10 @@ static void cb(uev_t *w, void *UNUSED(arg), int UNUSED(events))
|
|||||||
|
|
||||||
case INIT_CMD_DEBUG:
|
case INIT_CMD_DEBUG:
|
||||||
debug = !debug;
|
debug = !debug;
|
||||||
|
if (debug)
|
||||||
|
verbose = 1;
|
||||||
|
else
|
||||||
|
verbose = quiet ? 0 : VERBOSE_MODE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case INIT_CMD_RELOAD: /* 'init q' and 'initctl reload' */
|
case INIT_CMD_RELOAD: /* 'init q' and 'initctl reload' */
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ int main(int argc, char* argv[])
|
|||||||
tty_runlevel(runlevel);
|
tty_runlevel(runlevel);
|
||||||
|
|
||||||
/* Disable verbose mode, if selected */
|
/* Disable verbose mode, if selected */
|
||||||
if (quiet)
|
if (quiet && !debug)
|
||||||
verbose = 0;
|
verbose = 0;
|
||||||
|
|
||||||
/* Start new initctl API responder */
|
/* Start new initctl API responder */
|
||||||
|
|||||||
Reference in new issue
Block a user