From b2d6d5e037ed681666f4a2edcfd75b3ba6eaf3c7 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 14 May 2007 14:54:43 +0000 Subject: Ensure that syslog-ng is used (syslog is deprecated and will not be configured) ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1081 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/distro-specs/suse/functions-default | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/initramfs/distro-specs/suse/functions-default b/initramfs/distro-specs/suse/functions-default index 12728e34..7dd42440 100644 --- a/initramfs/distro-specs/suse/functions-default +++ b/initramfs/distro-specs/suse/functions-default @@ -116,10 +116,13 @@ if [ "x$start_cron" = "xyes" ] ; then fi fi } -# syslog service (different syslogs might be present) +# syslog service (use syslog-ng for all versions) config_syslog () { if [ "x$start_syslog" != "xno" ] ; then if [ -f /mnt/etc/${D_INITDIR}/syslog ] ; then + sed -e "1i# modified in InitRamFS by $0" \ + -e "s,SYSLOG_DAEMON=.*,SYSLOG_DAEMON=\"syslog-ng\"," \ + -i /mnt/etc/sysconfig/syslog # logoutput depending on $start_syslog definitions sysngwriter /mnt/etc/syslog-ng/syslog-ng.conf rllinker syslog "02" "20" -- cgit v1.2.3-55-g7522