From 0fa6e5fc831513b31d3ae8fc2bd628be5b0bd6136ad299d0e0cac80baffe68cb Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 9 May 2008 19:42:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syslogd?expand=0&rev=11 --- rc.syslog | 39 ++++++++++++++++++++------------------- syslogd.changes | 5 +++++ syslogd.spec | 4 +++- 3 files changed, 28 insertions(+), 20 deletions(-) diff --git a/rc.syslog b/rc.syslog index f616f69..d6ff281 100644 --- a/rc.syslog +++ b/rc.syslog @@ -4,7 +4,7 @@ # Copyright (c) 2002-2003 SuSE Linux AG, Nuernberg, Germany. # # Author: Florian La Roche , 1996 -# Werner Fink , 1998-2001 +# Werner Fink , 1998-2001,2008 # # /etc/init.d/syslog # @@ -57,16 +57,19 @@ syslog_use="" # check config and programs test -s ${config} || { - echo 1>&2 "${config} does not exist" - if test "$1" == "stop" ; then exit 0 ; else exit 6 ; fi + echo "${config} does not exist" 1>&2 + test "$1" == "stop" && exit 0 + exit 6 } test -x ${syslog_bin} || { - echo 1>&2 "${syslog_bin} is not installed" - if test "$1" == "stop" ; then exit 0 ; else exit 5 ; fi + echo "${syslog_bin} is not installed" 1>&2 + test "$1" == "stop" && exit 0 + exit 5 } test -x ${klog_bin} || { - echo 1>&2 "${klog_bin} is not installed" - if test "$1" == "stop" ; then exit 0 ; else exit 5 ; fi + echo "${klog_bin} is not installed" 1>&2 + test "$1" == "stop" && exit 0 + exit 5 } test -s /var/lock/subsys/syslogd && { read -t 5 syslog_use < /var/lock/subsys/syslogd @@ -77,35 +80,33 @@ syslog_use_pid="/var/run/${syslog_use##*\/}.pid" # # Do not translate symbol addresses for 2.6 kernel # -case `uname -r` in -0.*|1.*|2.[0-4].*) - ;; -*) - KLOGD_PARAMS="${KLOGD_PARAMS:+$KLOGD_PARAMS }-x" - ;; +case "$(uname -r)" in +[01].*|2.[0-4].*) ;; +*) case "$KLOGD_PARAMS" in + *-x*) ;; + *) KLOGD_PARAMS="${KLOGD_PARAMS:+$KLOGD_PARAMS }-x" + esac esac . /etc/rc.status rc_reset case "$1" in start) - if test -f /var/lock/subsys/earlysyslog ; then + if test -e /var/lock/subsys/earlysyslog ; then # Syslog service already done rm -f /var/lock/subsys/earlysyslog exit 0 fi if test "$2" = "early" ; then # Start syslog service early - touch /var/lock/subsys/earlysyslog + > /var/lock/subsys/earlysyslog fi if ! test -e /dev/xconsole ; then - mkfifo -m 0600 /dev/xconsole + mknod -m 0600 /dev/xconsole p chown root:tty /dev/xconsole fi - if test -s /var/run/klogd.pid ; then - killproc ${klog_bin} - fi + killproc -p /var/run/klogd.pid ${klog_bin} if test -s ${syslog_use_pid} ; then killproc -p ${syslog_use_pid} ${syslog_use} echo -n "Re-" diff --git a/syslogd.changes b/syslogd.changes index 36b061e..119ad89 100644 --- a/syslogd.changes +++ b/syslogd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 8 16:59:36 CEST 2008 - werner@suse.de + +- Clean syslog boot script and replace mkfifo with mknod (bnc#382236) + ------------------------------------------------------------------- Thu Apr 3 11:08:30 CEST 2008 - mkoenig@suse.de diff --git a/syslogd.spec b/syslogd.spec index 9a1e9b5..702e446 100644 --- a/syslogd.spec +++ b/syslogd.spec @@ -20,7 +20,7 @@ PreReq: coreutils %fillup_prereq klogd sed Provides: syslog AutoReqProv: on Version: 1.4.1 -Release: 664 +Release: 671 Summary: The Syslog daemon Source: sysklogd-1.4.1.tar.bz2 Source1: logrotate.syslog @@ -224,6 +224,8 @@ fi %{omc_svcdir}/syslog.xml %changelog +* Thu May 08 2008 werner@suse.de +- Clean syslog boot script and replace mkfifo with mknod (bnc#382236) * Thu Apr 03 2008 mkoenig@suse.de - readd removed defines for svcinfo path * Tue Apr 01 2008 mkoenig@suse.de