projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2efca1
)
main: reopen /dev/console for user service manager
author
Einsler Lee
<shenxiaogll@163.com>
Tue, 2 Mar 2021 12:21:21 +0000
(20:21 +0800)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 3 Aug 2022 07:48:25 +0000
(09:48 +0200)
Now the console_fd of user service manager is 2. Even if LogTarget=console is set in /etc/systemd/user.conf,there is no log in the console.
This reopen the /dev/console, so the log of user service can be output in the console.
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index 55f5481eb2321b109d44fea2b5688cb08608b0b5..fbbfd71ac8aacd82cc75de2ddc164609b677fd71 100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-2819,6
+2819,7
@@
int main(int argc, char *argv[]) {
} else {
/* Running as user instance */
arg_system = false;
+ log_set_always_reopen_console(true);
log_set_target(LOG_TARGET_AUTO);
log_open();