X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmain.c;h=458fdca55e86f9b465ef8bd6347b95067fdb19ee;hb=c65a0b146652cac52fe3c43f7cb8fe6a2ac3e063;hp=12af3cdd270bab97d255c3a7c7ac9d188413391b;hpb=032f81645b3a60be316d7a0ed1e84443aa8737ba;p=elogind.git diff --git a/src/core/main.c b/src/core/main.c index 12af3cdd2..458fdca55 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1266,6 +1266,8 @@ int main(int argc, char *argv[]) { } arg_running_as = MANAGER_SYSTEM; + + make_null_stdio(); log_set_target(detect_container(NULL) > 0 ? LOG_TARGET_JOURNAL : LOG_TARGET_JOURNAL_OR_KMSG); if (!skip_setup) { @@ -1305,12 +1307,13 @@ int main(int argc, char *argv[]) { } /* By default, mount "cpu" and "cpuacct" together */ - arg_join_controllers = new(char**, 2); + arg_join_controllers = new(char**, 3); if (!arg_join_controllers) goto finish; - arg_join_controllers[0] = strv_new("cpu", "cpuacct", NULL); - arg_join_controllers[1] = NULL; + arg_join_controllers[0] = strv_new("cpu", "cpuacct", "cpuset", NULL); + arg_join_controllers[1] = strv_new("net_cls", "net_prio", NULL); + arg_join_controllers[2] = NULL; if (!arg_join_controllers[0]) goto finish; @@ -1438,10 +1441,8 @@ int main(int argc, char *argv[]) { /* Reset the console, but only if this is really init and we * are freshly booted */ - if (arg_running_as == MANAGER_SYSTEM && arg_action == ACTION_RUN) { + if (arg_running_as == MANAGER_SYSTEM && arg_action == ACTION_RUN) console_setup(getpid() == 1 && !skip_setup); - make_null_stdio(); - } /* Open the logging devices, if possible and necessary */ log_open();