summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit
diff options
context:
space:
mode:
authorChen Qi <qi.chen@windriver.com>2013-11-02 13:21:59 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-08 17:24:52 +0000
commit6059be3ab60b8ab463d438c47bb17553d184a790 (patch)
treed05980e2c16bb9f1d96d3b0c0993eb1036b0cac6 /meta/recipes-core/sysvinit
parentbeea86fa9637fd629719980e14beea758847b8f3 (diff)
downloadopenembedded-core-contrib-6059be3ab60b8ab463d438c47bb17553d184a790.tar.gz
openembedded-core-contrib-6059be3ab60b8ab463d438c47bb17553d184a790.tar.bz2
openembedded-core-contrib-6059be3ab60b8ab463d438c47bb17553d184a790.zip
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] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/sysvinit')
-rwxr-xr-xmeta/recipes-core/sysvinit/sysvinit/bootlogd.init4
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
then
umask 027
start-stop-daemon --start --quiet \
- --exec $DAEMON -- -r
+ --exec $DAEMON -- -r -c
else
- $DAEMON -r
+ $DAEMON -r -c
fi
echo "$NAME."
;;