diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-20 12:37:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-20 12:40:01 +0200 |
commit | a0a3844815b0f346dba03f41245c620f432e462f (patch) | |
tree | 36b3758746d9524dd3de67e3e21a2799b9a09c9f | |
parent | 21dbe43aece5b6fc87860de175f067b56649e7d1 (diff) |
main: log to the journal in container mode, by default
-rw-r--r-- | TODO | 6 | ||||
-rw-r--r-- | src/core/main.c | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -24,6 +24,10 @@ Features: * selinux: merge systemd selinux access controls (dwalsh) +* ConditionSecurity= should learn about IMA + +* add RequiredBy to [Install] + * cg_shorten_controllers() misuses alloca() * suspend/hibernate/hybrid support, auto-suspend logic with idle hint @@ -153,8 +157,6 @@ Features: * support "systemctl stop foobar@.service" to stop all units matching a certain template -* move to LGPL2+ - * logind: allow showing logout dialog from system * document that %% can be used to write % in a string that is specifier extended diff --git a/src/core/main.c b/src/core/main.c index e3ea868da8..290de26022 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1211,7 +1211,7 @@ int main(int argc, char *argv[]) { if (getpid() == 1) { arg_running_as = MANAGER_SYSTEM; - log_set_target(detect_container(NULL) > 0 ? LOG_TARGET_CONSOLE : LOG_TARGET_JOURNAL_OR_KMSG); + log_set_target(detect_container(NULL) > 0 ? LOG_TARGET_JOURNAL : LOG_TARGET_JOURNAL_OR_KMSG); if (!is_reexec) { if (selinux_setup(&loaded_policy) < 0) |