From 111d1b8bb2b89e06091335fff6a917bbd9a1f66e Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 31 Jan 2012 16:49:47 -0800 Subject: 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. Signed-off-by: Joshua Lock --- meta/recipes-extended/sysklogd/files/sysklogd | 2 +- meta/recipes-extended/sysklogd/files/syslog.conf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'meta/recipes-extended/sysklogd/files') diff --git a/meta/recipes-extended/sysklogd/files/sysklogd b/meta/recipes-extended/sysklogd/files/sysklogd index e0fa7a8e1..dcbc81e5a 100755 --- a/meta/recipes-extended/sysklogd/files/sysklogd +++ b/meta/recipes-extended/sysklogd/files/sysklogd @@ -15,7 +15,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin pidfile_syslogd=/var/run/syslogd.pid -pidfile_klogd=/var/run/syslogd.pid +pidfile_klogd=/var/run/klogd.pid binpath_syslogd=/sbin/syslogd binpath_klogd=/sbin/klogd diff --git a/meta/recipes-extended/sysklogd/files/syslog.conf b/meta/recipes-extended/sysklogd/files/syslog.conf index 795d73545..7d1858ca5 100644 --- a/meta/recipes-extended/sysklogd/files/syslog.conf +++ b/meta/recipes-extended/sysklogd/files/syslog.conf @@ -26,9 +26,9 @@ mail.err /var/log/mail.err # Logging for INN news system # -news.crit /var/log/news/news.crit -news.err /var/log/news/news.err -news.notice -/var/log/news/news.notice +news.crit /var/log/news.crit +news.err /var/log/news.err +news.notice -/var/log/news.notice # # Some `catch-all' logfiles. -- cgit v1.2.3