public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] syslog-ng + automatic respawn of target programs
Date: Wed, 5 Jul 2006 09:03:03 -0700	[thread overview]
Message-ID: <7573e9640607050903y67171685r5feb7fbfc0835e4f@mail.gmail.com> (raw)
In-Reply-To: <1004fb350607042348r1c6992e1ocb30ca9ae27163a4@mail.gmail.com>

On 7/4/06, thomas blomme <blommethomas@gmail.com> 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
-- 
gentoo-user@gentoo.org mailing list



      reply	other threads:[~2006-07-05 16:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-04 17:28 [gentoo-user] syslog-ng + automatic respawn of target programs Enrico Weigelt
2006-07-04 22:21 ` Richard Fish
2006-07-05  6:48   ` thomas blomme
2006-07-05 16:03     ` Richard Fish [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7573e9640607050903y67171685r5feb7fbfc0835e4f@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox