summaryrefslogtreecommitdiff
path: root/redhat/rsyslog.init
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/rsyslog.init')
-rw-r--r--redhat/rsyslog.init89
1 files changed, 0 insertions, 89 deletions
diff --git a/redhat/rsyslog.init b/redhat/rsyslog.init
deleted file mode 100644
index 6b6f064..0000000
--- a/redhat/rsyslog.init
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/bash
-#
-# rsyslog Starts rsyslogd/rklogd.
-#
-#
-# chkconfig: 2345 12 88
-# description: Syslog is the facility by which many daemons use to log \
-# messages to various system log files. It is a good idea to always \
-# run rsyslog.
-### BEGIN INIT INFO
-# Provides: $syslog
-# 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
-# grain output format control.
-### END INIT INFO
-
-# Source function library.
-. /etc/init.d/functions
-
-RETVAL=0
-
-start() {
- [ -x /sbin/rsyslogd ] || exit 5
- [ -x /sbin/rklogd ] || exit 5
-
- # Source config
- if [ -f /etc/sysconfig/rsyslog ] ; then
- . /etc/sysconfig/rsyslog
- else
- SYSLOGD_OPTIONS="-m 0"
- KLOGD_OPTIONS="-2"
- fi
-
- umask 077
-
- echo -n $"Starting system logger (rsyslog): "
- daemon rsyslogd $SYSLOGD_OPTIONS
- RETVAL=$?
- echo
- echo -n $"Starting kernel logger (rklogd): "
- daemon rklogd $KLOGD_OPTIONS
- echo
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rsyslog
- return $RETVAL
-}
-stop() {
- echo -n $"Shutting down kernel logger (rklogd): "
- killproc rklogd
- echo
- echo -n $"Shutting down system logger (rsyslog): "
- killproc rsyslogd
- RETVAL=$?
- echo
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rsyslog
- return $RETVAL
-}
-rhstatus() {
- status rsyslogd
- status rklogd
-}
-restart() {
- stop
- start
-}
-
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- status)
- rhstatus
- ;;
- restart|reload)
- restart
- ;;
- condrestart)
- [ -f /var/lock/subsys/rsyslog ] && restart || :
- ;;
- *)
- echo $"Usage: $0 {start|stop|status|restart|condrestart}"
- exit 2
-esac
-
-exit $?