summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-06-26 07:28:06 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-06-26 07:28:06 +0000
commit987091b6db75b2b14e20afbd5b4c47e1da925951 (patch)
tree2f80d167786e8997b8a38a57e892f628b30aa5e9 /redhat
parent7a3a89fe969e38845e0a14c4fbd96fad8f6db1e4 (diff)
downloadrsyslog-987091b6db75b2b14e20afbd5b4c47e1da925951.tar.gz
rsyslog-987091b6db75b2b14e20afbd5b4c47e1da925951.tar.xz
rsyslog-987091b6db75b2b14e20afbd5b4c47e1da925951.zip
to solve bug similar to
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=245330 - thanks Peter Vrabec
Diffstat (limited to 'redhat')
-rw-r--r--redhat/rsyslog.init28
1 files changed, 14 insertions, 14 deletions
diff --git a/redhat/rsyslog.init b/redhat/rsyslog.init
index 28e50bf9..6b6f0649 100644
--- a/redhat/rsyslog.init
+++ b/redhat/rsyslog.init
@@ -9,7 +9,7 @@
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
-# Short-Description: Rsyslog, the enhanced syslogd for Linux and Unix
+# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting,
# among others, MySQL, syslog/tcp, RFC 3195, permitted
# sender lists, filtering on any message part, and fine
@@ -19,22 +19,22 @@
# Source function library.
. /etc/init.d/functions
-[ -f /sbin/rsyslogd ] || exit 0
-[ -f /sbin/rklogd ] || exit 0
+RETVAL=0
-# Source config
-if [ -f /etc/sysconfig/rsyslog ] ; then
- . /etc/sysconfig/rsyslog
-else
- SYSLOGD_OPTIONS="-m 0"
- KLOGD_OPTIONS="-2"
-fi
+start() {
+ [ -x /sbin/rsyslogd ] || exit 5
+ [ -x /sbin/rklogd ] || exit 5
-RETVAL=0
+ # Source config
+ if [ -f /etc/sysconfig/rsyslog ] ; then
+ . /etc/sysconfig/rsyslog
+ else
+ SYSLOGD_OPTIONS="-m 0"
+ KLOGD_OPTIONS="-2"
+ fi
-umask 077
+ umask 077
-start() {
echo -n $"Starting system logger (rsyslog): "
daemon rsyslogd $SYSLOGD_OPTIONS
RETVAL=$?
@@ -83,7 +83,7 @@ case "$1" in
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
- exit 1
+ exit 2
esac
exit $?