Patchwork [1/1] sysvinit: fix missing of boot log

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date Sept. 26, 2013, 8:14 a.m.
Message ID <87c00da03e6e9fd615f776ef7f245d5deb6e020f.1380183254.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/59011/
State Accepted
Commit f7140dc6f376df3a4cac341d62e41c63738d82b9
Headers show

Comments

Qi.Chen@windriver.com - Sept. 26, 2013, 8:14 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

Previously, our system had no boot log even if the bootlogd daemon was
started correctly. The root cause is that the log file doesn't exist
when starting the bootlogd.

Add '-c' option to bootlogd so that it will create the boot log if
it doesn't exist.

[YOCTO #5273]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-core/sysvinit/sysvinit/bootlogd.init |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
index 7b87827..b181357 100755
--- a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
+++ b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
@@ -47,9 +47,9 @@  case "$ACTION" in
 		then
 			umask 027
 			start-stop-daemon --start --quiet \
-				--exec $DAEMON -- -r
+				--exec $DAEMON -- -r -c
 		else
-			$DAEMON -r
+			$DAEMON -r -c
 		fi
 		echo "$NAME."
 		;;