[prev in list] [next in list] [prev in thread] [next in thread] 

List:       syslog-ng
Subject:    Re: [syslog-ng] syslog-ng 3.0.1 dies on reload with
From:       Jan Rekorajski <baggins () sith ! mimuw ! edu ! pl>
Date:       2009-05-04 13:55:45
Message-ID: 20090504135545.GC24110 () sith ! mimuw ! edu ! pl
[Download RAW message or body]

On Mon, 04 May 2009, Bartosz Lis wrote:

> Hello,
> 
> I had the same problem as Jan Rekorajski with syslog-ng 3.0.1 and 2.0.10:
> 
> > Hi,
> > Syslog-ng 3.0.1 dies on reload (kill -HUP pid) when config file contains
> > log { destination { program() } }  directive set. 100% repeatable.
> > 
> > Here are the relevant config lines:
> > 
> > destination d_sshguard  { program("/usr/sbin/sshguard -a 6"); };
> > # A desperate experiment
> > #destination d_sshguard  { program("read"); };
> > 
> > log { source(s_sys); filter(f_authpriv);        destination(d_sshguard); };
> 
> pstree revealed that the command /usr/sbin/sshguard was run by a shell (in my 
> case pdksh). To make the shell go out of my way I've put exec before 
> /usr/sbin/sshguard . See my syslog-ng.conf :
> 
> destination d_sshguard { program("exec /usr/sbin/sshguard" template("$DATE 
> $FULLHOST $MESSAGE\n")); }
> 
> Since I've changed this and restarted syslog-ng, it survives killing it with 
> HUP, now. 

ACK. I also use pdksh and putting exec before command fixed the issue for me.
Big thanks for finding this.

-- 
Jan Rekorajski            |  ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl   |  OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC              |                   -- TROOPS by Kevin Rubio
______________________________________________________________________________
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic