bootlogd: create log file if not present

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]

(From OE-Core master rev: 6059be3ab60b8ab463d438c47bb17553d184a790)

(From OE-Core rev: f676a69dee845cfd6de7a0cc8bd0bb813a8dffc0)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chen Qi 2013-11-02 13:21:59 +08:00 committed by Richard Purdie
parent e078fa2537
commit 6894ee1baf
1 changed files with 2 additions and 2 deletions

View File

@ -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."
;;