Change log output of system/user daemon to emulator.klog
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 2 Apr 2013 07:48:41 +0000 (16:48 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 2 Apr 2013 07:48:41 +0000 (16:48 +0900)
Change-Id: Ia97b2f2fbdda660066b49110d014d3eee3f79169
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
filesystem/etc/preconf.d/systemd_conf.preinit [new file with mode: 0755]

diff --git a/filesystem/etc/preconf.d/systemd_conf.preinit b/filesystem/etc/preconf.d/systemd_conf.preinit
new file mode 100755 (executable)
index 0000000..014d570
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Prepare systemd log output
+# For system.conf
+echo "DefaultStandardOutput=kmsg" >> /etc/systemd/system.conf
+echo "DefaultStandardError=kmsg" >> /etc/systemd/system.conf
+# For user.conf
+echo "DefaultStandardOutput=inherit" >> /etc/systemd/user.conf
+echo "DefaultStandardError=inherit" >> /etc/systemd/user.conf
+