diff options
author | Chen Qi <qi.chen@windriver.com> | 2013-11-02 13:21:59 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-08 17:25:36 +0000 |
commit | f7140dc6f376df3a4cac341d62e41c63738d82b9 (patch) | |
tree | de44fe984ac94cb4ba1f1f9d6e0297eb89a7a424 /meta/recipes-core/sysvinit | |
parent | 1e16634af63a49c3a59335e47d96691ff4df2a7a (diff) | |
download | poky-f7140dc6f376df3a4cac341d62e41c63738d82b9.tar.gz |
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 rev: 6059be3ab60b8ab463d438c47bb17553d184a790)
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>
Diffstat (limited to 'meta/recipes-core/sysvinit')
-rwxr-xr-x | meta/recipes-core/sysvinit/sysvinit/bootlogd.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init index 7b87827fdf..b1813572ca 100755 --- a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init +++ b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init | |||
@@ -47,9 +47,9 @@ case "$ACTION" in | |||
47 | then | 47 | then |
48 | umask 027 | 48 | umask 027 |
49 | start-stop-daemon --start --quiet \ | 49 | start-stop-daemon --start --quiet \ |
50 | --exec $DAEMON -- -r | 50 | --exec $DAEMON -- -r -c |
51 | else | 51 | else |
52 | $DAEMON -r | 52 | $DAEMON -r -c |
53 | fi | 53 | fi |
54 | echo "$NAME." | 54 | echo "$NAME." |
55 | ;; | 55 | ;; |