]> code.ossystems Code Review - openembedded-core.git/commit
sysklogd: correct the syslog link and conf file
authorYu Ke <ke.yu@intel.com>
Tue, 19 Oct 2010 07:15:17 +0000 (15:15 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 19 Oct 2010 19:29:59 +0000 (20:29 +0100)
commit4f7d621db6943cd32c7c4ba41a96db72c1d91e4c
tree40ca4b3097534aec32a5a5a9d9ae5f2761a7bcaf
parentc41fe30640fe2f27df8de7b53112bd492cd5468f
sysklogd: correct the syslog link and conf file

This commit fix [BUGID #482]

Two issues cause bug 482:
- firsty, there are two version of syslog: sysklogd and busybox.
  the busybox one is directly installed as /etc/init.d/syslog,
  and the sysklogd one is installed by update-alternative. the
  update-alternative will thus fail because the /etc/init.d/syslog
  (busybox one) already exist and not a link. so the correct way
  is to install busybox one by update-alternative, the layout will be:
  /etc/init.d/syslog.busybox
  /etc/init.d/syslog.sysklogd
  /etc/init.d/syslog -> syslog.busybox or
  /etc/init.d/syslog -> syslog.sysklogd

- secondly, sysklogd default conf is not comply with poky. Its dir /var/adm/
  does not exist. Check the debian /etc/syslog.conf and find it is more
  sophiscated and suitable, so port /etc/syslog.conf from debian.

Signed-off-by: Yu Ke <ke.yu@intel.com>
meta/recipes-core/busybox/busybox.inc
meta/recipes-core/busybox/busybox_1.16.2.bb
meta/recipes-extended/sysklogd/files/syslog.conf [new file with mode: 0644]
meta/recipes-extended/sysklogd/sysklogd.inc
meta/recipes-extended/sysklogd/sysklogd_1.5.bb