3 # rsyslog Starts rsyslogd/rklogd.
7 # description: Syslog is the facility by which many daemons use to log \
8 # messages to various system log files. It is a good idea to always \
12 # Required-Start: $local_fs $network $remote_fs
13 # Required-Stop: $local_fs $network $remote_fs
14 # Default-Stop: 0 1 2 3 4 5 6
15 # Short-Description: Enhanced system logging and kernel message trapping daemons
16 # Description: Rsyslog is an enhanced multi-threaded syslogd supporting,
17 # among others, MySQL, syslog/tcp, RFC 3195, permitted
18 # sender lists, filtering on any message part, and fine
19 # grain output format control.
22 # Source function library.
23 . /etc/init.d/functions
28 [ -x /sbin/rsyslogd ] || exit 5
31 if [ -f /etc/sysconfig/rsyslog ] ; then
32 . /etc/sysconfig/rsyslog
36 echo -n $"Starting system logger: "
37 daemon rsyslogd $SYSLOGD_OPTIONS
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rsyslog
44 echo -n $"Shutting down system logger: "
48 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rsyslog
53 syslog=`cat /var/run/syslogd.pid 2>/dev/null`
54 echo -n "Reloading system logger..."
55 if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
59 if [ $RETVAL -ne 0 ]; then
92 [ -f /var/lock/subsys/rsyslog ] && restart || :
95 echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart}"