summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysklogd/sysklogd.inc
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-01-31 16:49:47 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-02 18:28:27 +0000
commit5c3323b7e7b71ef83d19f67b8c9c4277cf873cdf (patch)
tree2fa80b01da889af72135325f59115d50106a4ba2 /meta/recipes-extended/sysklogd/sysklogd.inc
parentf408dd164ee4aee7ae0e46392fb088c5263ea81c (diff)
downloadpoky-5c3323b7e7b71ef83d19f67b8c9c4277cf873cdf.tar.gz
sysklogd: various fixes so it starts/stops cleanly
This patch fixes several issues with the sysklogd recipe: o Errors at start due to non-existent /var/log/news/ - every other log file is created in /var/log, not a sub-directory. Do the same for news logs. o klogd would not be stopped due to pidfile recycling, give klogd its own pidfile o preinstalls failed at rootfs creation time by trying to access the host root filesystem rather than a path relative to $D. Update the preinst to test for $D and do the right thing. (From OE-Core rev: 111d1b8bb2b89e06091335fff6a917bbd9a1f66e) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sysklogd/sysklogd.inc')
-rw-r--r--meta/recipes-extended/sysklogd/sysklogd.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc
index 0b84dace96..fb2ddb2013 100644
--- a/meta/recipes-extended/sysklogd/sysklogd.inc
+++ b/meta/recipes-extended/sysklogd/sysklogd.inc
@@ -46,12 +46,14 @@ do_install () {
46pkg_preinst_${PN} () { 46pkg_preinst_${PN} () {
47 # all this is needed to avoid sysmlink errors, 47 # all this is needed to avoid sysmlink errors,
48 # because update-rc.d runs before pkg_postinst 48 # because update-rc.d runs before pkg_postinst
49 if [ -e ${sysconfdir}/init.d/syslog -a ! -L ${sysconfdir}/init.d/syslog ]; then 49 ETC=$D${sysconfdir}
50
51 if [ -e $ETC/init.d/syslog -a ! -L $ETC/init.d/syslog ]; then
50 echo "WARNING:" "non symlink ${sysconfdir}/init.d/syslog exist -> backup to ${sysconfdir}/init.d/syslog.old" 52 echo "WARNING:" "non symlink ${sysconfdir}/init.d/syslog exist -> backup to ${sysconfdir}/init.d/syslog.old"
51 mv ${sysconfdir}/init.d/syslog ${sysconfdir}/init.d/syslog.old 53 mv $ETC/init.d/syslog $ETC/init.d/syslog.old
52 fi 54 fi
53 if [ ! -e ${sysconfdir}/init.d/syslog ]; then 55 if [ ! -e $ETC/init.d/syslog ]; then
54 ln -s dummy ${sysconfdir}/init.d/syslog 56 ln -s dummy $ETC/init.d/syslog
55 fi 57 fi
56} 58}
57 59