On 7/4/06, thomas blomme <[EMAIL PROTECTED]> wrote:

http://www.campin.net/syslog-ng/expanded-syslog-ng.conf

look at the above link, it contains all functions syslog can have

Ok.  It is also in the documentation installed at
/usr/share/doc/syslog-ng-*/html/.  So I guess it is just an omission
from the man page.

Back to the OP's question, the syslog documentation seems to make it
clear that it will not respawn the program to prevent DoS attacks.  If
you want this, you can create a shell script around the program you
want to call, and handle any respawns there.  A simple implementation
might be:

$program &
pid=$!
while wait $pid; do
   $program &
   pid=$!
done

Of course, it would be best to add in some type of abort mechanism in
case $program starts dying unexpectedly, so you don't try to exec it
1000's of times per second.

-Richard
--
[email protected] mailing list

Reply via email to