[syslog-ng] syslog-ng gets started twice when system reboots
Xuan Zhong
xuan_zhong at hotmail.com
Tue Feb 23 01:42:42 CET 2010
Here is the output of sh +x /etc/init.d/syslog-ng start:
++ uname -s
+ OS=Linux
+ SYSLOGNG_PREFIX=/opt/syslog-ng
+ SYSLOGNG=/opt/syslog-ng/sbin/syslog-ng
+ CONFFILE=/opt/syslog-ng/etc/syslog-ng.conf
+ PIDFILE=/opt/syslog-ng/var/run/syslog-ng.pid
+ SYSLOGPIDFILE=/var/run/syslog.pid
+ SLNG_INIT_FUNCTIONS=/opt/syslog-ng/lib/init-functions
+ MAXWAIT=30
+ SUBSYSDIR=/var/lock/subsys
+ retval=0
+ test -x /opt/syslog-ng/sbin/syslog-ng
+ test -r /opt/syslog-ng/etc/syslog-ng.conf
+ '[' -f /etc/lsb-release ']'
+ '[' -f /etc/redhat-release ']'
+ SYSLOGPIDFILE=/var/run/syslogd.pid
+ '[' Linux = SunOS ']'
+ '[' Linux = Solaris ']'
+ . /opt/syslog-ng/lib/init-functions
++ RED=
++ YELLOW=
++ NORMAL=
++ FANCYTTY=
++ PSOPTS=
++ ECHO=echo
+++ uname -s
++ OS=Linux
++ '[' -f /lib/lsb/init-functions ']'
++ . /lib/lsb/init-functions
++ unalias start_daemon
++ unalias killproc
++ unalias pidofproc
++ case $OS in
++ '[' -z '3.1.17(1)-release' ']'
+ case "$OS" in
+ SYSLOGNG_OPTIONS=--no-caps
+ '[' -r /etc/default/syslog-ng ']'
+ '[' -r /etc/sysconfig/syslog-ng ']'
+ '[' -r /opt/syslog-ng/etc/default/syslog-ng ']'
+ case $OS in
+ case "x$CONSOLE_LOG_LEVEL" in
+ create_xconsole
+ grep -v '^#' /opt/syslog-ng/etc/syslog-ng.conf
+ grep /dev/xconsole
+ case "$1" in
+ syslogng_start
+ echo_n 'Starting syslog-ng: '
+ case "$OS" in
+ echo -n 'Starting syslog-ng: '
Starting syslog-ng: ++ head -1
++ pidofproc -p /opt/syslog-ng/var/run/syslog-ng.pid /opt/syslog-ng/sbin/syslog-ng
++ proc=
++ pidfile=
++ '[' -p = -p ']'
++ pidfile=/opt/syslog-ng/var/run/syslog-ng.pid
++ shift
++ shift
++ '[' -z /opt/syslog-ng/sbin/syslog-ng ']'
++ proc=/opt/syslog-ng/sbin/syslog-ng
++ shift
+++ basename /opt/syslog-ng/sbin/syslog-ng
++ base=syslog-ng
++ '[' -z /opt/syslog-ng/var/run/syslog-ng.pid ']'
++ '[' -f /opt/syslog-ng/var/run/syslog-ng.pid ']'
++ return 4
+ PID=
+ '[' -n '' ']'
+ start_daemon -f -p /opt/syslog-ng/var/run/syslog-ng.pid /opt/syslog-ng/sbin/syslog-ng --no-caps
+ proc=
+ pidfile=
+ force=
+ nice=
+ '[' -f = -f ']'
+ force=force
+ shift
+ '[' -p = -n ']'
+ '[' -p = -p ']'
+ pidfile=/opt/syslog-ng/var/run/syslog-ng.pid
+ shift
+ shift
+ '[' -z /opt/syslog-ng/sbin/syslog-ng ']'
+ proc=/opt/syslog-ng/sbin/syslog-ng
+ shift
++ basename /opt/syslog-ng/sbin/syslog-ng
+ base=syslog-ng
+ '[' -z /opt/syslog-ng/var/run/syslog-ng.pid ']'
+ _pid_from_pidfile /opt/syslog-ng/var/run/syslog-ng.pid syslog-ng
+ pidfile=/opt/syslog-ng/var/run/syslog-ng.pid
+ procname=syslog-ng
+ pid=
+ '[' -f /opt/syslog-ng/var/run/syslog-ng.pid ']'
+ return 3
+ '[' -n '' ']'
+ /opt/syslog-ng/sbin/syslog-ng --no-caps
+ return 0
+ retval=0
+ returnmessage 0
+ _rval=0
+ is_debian=0
+ case "$OS" in
++ cat /etc/issue
++ grep Debian
+ res=
+ is_debian=1
+ '[' 0 -ne 0 ']'
+ '[' 1 -eq 0 ']'
+ log_success_msg
+ /etc/redhat-lsb/lsb_log_message success
[ OK ]
+ '[' 0 -eq 0 ']'
+ '[' Linux = Linux ']'
+ '[' -d /var/lock/subsys ']'
+ touch /var/lock/subsys/syslog-ng
+ '[' -h /var/run/syslogd.pid ']'
+ '[' '!' -f /var/run/syslogd.pid ']'
+ ln -s /opt/syslog-ng/var/run/syslog-ng.pid /var/run/syslogd.pid
+ return 0
+ exit 0
> From: bazsi at balabit.hu
> To: syslog-ng at lists.balabit.hu
> Date: Sat, 20 Feb 2010 10:15:38 +0100
> CC: wes.hardin at maxim-ic.com
> Subject: Re: [syslog-ng] syslog-ng gets started twice when system reboots
>
> On Thu, 2010-02-18 at 18:24 +0000, Xuan Zhong wrote:
> > I looked both /etc/rc.d/rc3.d and /etc/rc.d/rc5.d, and other rcx.d
> > directories. Only one "S" script for syslog-ng and it's symbolic link
> > to /etc/init.d/syslog-ng. All files under rcx.d directory are symbolic
> > links.
> >
> > Do you know if the first occurance of "Starting syslog-ng:" or
> > "Stopping syslog-ng:" comes from syslog-ng binary file?
> >
>
> No, it doesn't. It is printed by the init script. Can you post the "sh
> -x" output that Folti has requested in his previous mail?
>
>
>
> --
> Bazsi
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/201469229/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100223/f777d13c/attachment-0001.htm
More information about the syslog-ng
mailing list