Attachment 'initd_syslog.patch'

Download

   1 --- etc/init.d/syslog.orig	2010-07-16 16:33:51.434869540 -0400
   2 +++ etc/init.d/syslog	2010-07-16 16:36:30.273642903 -0400
   3 @@ -18,14 +18,14 @@
   4  
   5  start() {
   6  	[ -x /sbin/syslogd ] || exit 5
   7 -	[ -x /sbin/klogd ] || exit 5
   8 +#	[ -x /sbin/klogd ] || exit 5
   9  
  10  	# Source config
  11  	if [ -f /etc/sysconfig/syslog ] ; then
  12  		. /etc/sysconfig/syslog
  13  	else
  14  		SYSLOGD_OPTIONS="-m 0"
  15 -		KLOGD_OPTIONS="-2"
  16 +#		KLOGD_OPTIONS="-2"
  17  	fi
  18  
  19  	if [ -z "$SYSLOG_UMASK" ] ; then
  20 @@ -37,16 +37,16 @@
  21  	daemon syslogd $SYSLOGD_OPTIONS
  22  	RETVAL=$?
  23  	echo
  24 -	echo -n $"Starting kernel logger: "
  25 -	daemon klogd $KLOGD_OPTIONS
  26 -	echo
  27 +#	echo -n $"Starting kernel logger: "
  28 +#	daemon klogd $KLOGD_OPTIONS
  29 +#	echo
  30  	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/syslog
  31  	return $RETVAL
  32  }	
  33  stop() {
  34 -	echo -n $"Shutting down kernel logger: "
  35 -	killproc klogd
  36 -	echo
  37 +#	echo -n $"Shutting down kernel logger: "
  38 +#	killproc klogd
  39 +#	echo
  40  	echo -n $"Shutting down system logger: "
  41  	killproc syslogd
  42  	RETVAL=$?
  43 @@ -56,7 +56,7 @@
  44  }
  45  rhstatus() {
  46  	status syslogd
  47 -	status klogd
  48 +#	status klogd
  49  }
  50  restart() {
  51  	stop
  52 @@ -76,19 +76,19 @@
  53  	success
  54      fi
  55      echo
  56 -    RETVAL=1
  57 -    echo -n "Reloading klogd..."
  58 -    klog=`cat /var/run/klogd.pid 2>/dev/null`
  59 -    if [ -n "${klog}" ] && [ -e /proc/"${klog}" ]; then
  60 -	kill -USR2 "$klog";
  61 -        RETVAL=$?
  62 -    fi
  63 -    if [ $RETVAL -ne 0 ]; then
  64 -	failure
  65 -    else
  66 -	success
  67 -    fi
  68 -    echo    
  69 +#    RETVAL=1
  70 +#    echo -n "Reloading klogd..."
  71 +#    klog=`cat /var/run/klogd.pid 2>/dev/null`
  72 +#    if [ -n "${klog}" ] && [ -e /proc/"${klog}" ]; then
  73 +#	kill -USR2 "$klog";
  74 +#        RETVAL=$?
  75 +#    fi
  76 +#    if [ $RETVAL -ne 0 ]; then
  77 +#	failure
  78 +#    else
  79 +#	success
  80 +#    fi
  81 +#    echo    
  82      return $RETVAL
  83  }
  84  case "$1" in

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.