summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-07-21 10:25:01 +0100
committerSimon McVittie <smcv@debian.org>2016-09-30 19:36:50 +0100
commit7c837b104503546af55da8ddd52390d9705f7ab9 (patch)
tree4201d32de16631b8636af6ef21b95e3f5ca684ab /tools
parent814560d56a07720e99b84c18f70beb5dbcee77b2 (diff)
dbus-launch: redirect dbus-daemon output to syslog
Otherwise, it won't go anywhere at all. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-launch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index bf689d22d..5a0198133 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -1218,6 +1218,7 @@ main (int argc, char **argv)
execl (test_daemon,
test_daemon,
+ close_stderr ? "--syslog-only" : "--syslog",
"--fork",
"--print-pid", write_pid_fd_as_string,
"--print-address", write_address_fd_as_string,
@@ -1235,6 +1236,7 @@ main (int argc, char **argv)
execl (DBUS_DAEMONDIR"/dbus-daemon",
DBUS_DAEMONDIR"/dbus-daemon",
+ close_stderr ? "--syslog-only" : "--syslog",
"--fork",
"--print-pid", write_pid_fd_as_string,
"--print-address", write_address_fd_as_string,
@@ -1254,6 +1256,7 @@ main (int argc, char **argv)
*/
execlp ("dbus-daemon",
"dbus-daemon",
+ close_stderr ? "--syslog-only" : "--syslog",
"--fork",
"--print-pid", write_pid_fd_as_string,
"--print-address", write_address_fd_as_string,